8 years agoFix cycles CUDA error with world multiple importance sampling, after recent OpenCL...
Brecht Van Lommel [Wed, 15 May 2013 19:02:30 +0000 (19:02 +0000)]
Fix cycles CUDA error with world multiple importance sampling, after recent OpenCL fixes.

8 years agoFix action zones not drawing properly while sculpting, due to recent bugfix.
Brecht Van Lommel [Wed, 15 May 2013 17:59:55 +0000 (17:59 +0000)]
Fix action zones not drawing properly while sculpting, due to recent bugfix.

Partial redraw doesn't work so well with these, now I've changed the action
zones to just draw as part of regions instead of as a special overdraw done
at the end, which fits better with partial redraw by avoiding any special

8 years agoFixes for blender internal viewport render:
Brecht Van Lommel [Wed, 15 May 2013 17:09:45 +0000 (17:09 +0000)]
Fixes for blender internal viewport render:

* Particles did not render at viewport resolution like meshes.
* Properties editor preview render of hair was crashing, solution is to have
  two separate flags for this preview render and viewport preview render.

8 years agoFix for missing finalization of memory blocks allocated in the Freestyle module.
Tamito Kajiyama [Wed, 15 May 2013 17:06:56 +0000 (17:06 +0000)]
Fix for missing finalization of memory blocks allocated in the Freestyle module.
Suitable for inclusion in 2.67a.

8 years agoLibmv internal compiler error workaround for VC2012.
Jürgen Herrmann [Wed, 15 May 2013 17:00:53 +0000 (17:00 +0000)]
Libmv internal compiler error workaround for VC2012.
Will be reverted as soon as the x64 compiler is fixed.
For now it shouldn't have an impact on tracking performance. My test have shown no significant speed difference to official VC2008 build of 2.67.

8 years agouse bool arrays rather then char for weight paint lock/select arrays
Campbell Barton [Wed, 15 May 2013 15:52:48 +0000 (15:52 +0000)]
use bool arrays rather then char for weight paint lock/select arrays

8 years agoAttempt to fix #35057 and #35372: slow texture painting performance.
Brecht Van Lommel [Wed, 15 May 2013 14:37:05 +0000 (14:37 +0000)]
Attempt to fix #35057 and #35372: slow texture painting performance.

After the paint refactoring for 2.67, the OpenGL texture was getting updated for
every stroke point, rather than once for every redraw. With a small brush radius
and low spacing the number of stroke points can be quite large, which might have
a big performance impact depending on the graphics card / drivers.

Also for 2D image paint, avoid redrawing the button panels and properties editor
during painting.

There is another possible cause for slowdowns with 3D texture painting which was
not fixed. Projection painting is creating and destroying threads for every stroke
point. Depending on the CPU/OS there might be a lot of overhead in doing that if
the brush size is small.

8 years agoFix another cases where painting long brush strokes with small radius was slowed
Brecht Van Lommel [Wed, 15 May 2013 14:37:01 +0000 (14:37 +0000)]
Fix another cases where painting long brush strokes with small radius was slowed
down, this time by the operator properties getting converted to a string for
display in the info window.

With 1000+ stroke points this can get slow, and takes up too much space anyway,
so now it's (somewhat arbitrarily) limited to printing only 10 points.

8 years agoFix slow resizing of ID property arrays with more than 1619 items, it incorrectly
Brecht Van Lommel [Wed, 15 May 2013 14:36:58 +0000 (14:36 +0000)]
Fix slow resizing of ID property arrays with more than 1619 items, it incorrectly
reverted to sizing with by 1 each time. This was slowing down painting long strokes
with small brush radius.

8 years agoFix #35354: dyntopo - materials and UI display issues
Sergey Sharybin [Wed, 15 May 2013 12:33:28 +0000 (12:33 +0000)]
Fix #35354: dyntopo - materials and UI display issues

Textured dyntopo draw was leaving 2d textures enabled when it shouldn't.

Root of the issue was figured out by Campbell, actual place where
2D textures left enabled found by self.

Also, simplified fix is suggested by Campbell (mine was 2 lines longer! :)

8 years agoThe Area Split/Merge corner widget was drawing 1 pixel too big, the lines overlapped
Ton Roosendaal [Wed, 15 May 2013 12:05:35 +0000 (12:05 +0000)]
The Area Split/Merge corner widget was drawing 1 pixel too big, the lines overlapped
the area divider line.

8 years agoPatch for CMakeLists.txt to build with new OpenAL libs on VS2012.
Jürgen Herrmann [Wed, 15 May 2013 11:26:57 +0000 (11:26 +0000)]
Patch for CMakeLists.txt to build with new OpenAL libs on VS2012.
Because of crashing issue with old Creative Labs OpenAL on Windows 8 x64.

8 years agoFix part of #35372: distorted strokes when painting zoomed out with a small brush
Brecht Van Lommel [Wed, 15 May 2013 11:16:01 +0000 (11:16 +0000)]
Fix part of #35372: distorted strokes when painting zoomed out with a small brush
size. Interpolated mouse coordinates should not get rounded to integers.

8 years agoFix #35364: sculpting - D shortcut inconsistency
Sergey Sharybin [Wed, 15 May 2013 11:10:59 +0000 (11:10 +0000)]
Fix #35364: sculpting - D shortcut inconsistency

Switching to tool will cycle via all brushes with given type
only in case current brush tool matches requested one.

This means, when user requests brush with different type,
first brush of that tool will be activated. But further
toggling to the same tool will cycle via all acceptable

8 years agofix for finding openjpeg on some systems.
Campbell Barton [Wed, 15 May 2013 09:57:17 +0000 (09:57 +0000)]
fix for finding openjpeg on some systems.

8 years agoMove sculptsession functions implementation from object.c to paint.c
Sergey Sharybin [Wed, 15 May 2013 08:54:05 +0000 (08:54 +0000)]
Move sculptsession functions implementation from object.c to paint.c

This functios are declared in BKE_paint.h header and using
SculptSession structure which is also declared there.

Anyway, does not make sense such a splitting of header and
implementation files, better be consistent here.

8 years agoFix #35362: using dyntopo gives wrong render results
Sergey Sharybin [Wed, 15 May 2013 08:25:42 +0000 (08:25 +0000)]
Fix #35362: using dyntopo gives wrong render results

Made it so dynamic topology will flush changes from
SculptSession->bm to Object->me.

Used the same approach as sculptsession_bm_to_me does,
but instead of using DAG_id_tag_update used in-place
DerivedMesh release. Otherwise this lead to some
update issues resulting in missed object after render.

Also fixed multires modifier not being applied for
render when rendering from dyntopo sculpt mode.

P.S. Apparently sculpsession_bm_to_me was declared
     in BKE_paint.h but implemented in object.c.
     Rather confusing and better make it so this
     functions are declared and implemented in
     consistent files. But will solve this in a
     separate commit.

8 years agobmesh edgeloop utility function, calculates an edge loop from 2 verts (start and...
Campbell Barton [Wed, 15 May 2013 06:27:48 +0000 (06:27 +0000)]
bmesh edgeloop utility function, calculates an edge loop from 2 verts (start and endpoint).

8 years agofix for own recent change with normal calculation (with no faces it wasn't freeing...
Campbell Barton [Wed, 15 May 2013 05:56:49 +0000 (05:56 +0000)]
fix for own recent change with normal calculation (with no faces it wasn't freeing 0 byte allocation).

8 years agoMore fix for memory leaks in the Freestyle module.
Tamito Kajiyama [Wed, 15 May 2013 01:30:03 +0000 (01:30 +0000)]
More fix for memory leaks in the Freestyle module.

8 years agoBGE: A little bit of cleanup:
Mitchell Stokes [Tue, 14 May 2013 22:52:10 +0000 (22:52 +0000)]
BGE: A little bit of cleanup:
  * Removing KX_Scene::RemoveAnimatedObject() since KX_Scene::NewRemoveObject() is already handling this.
  * Don't create a new BL_ActionManager when replicating an object. Just set m_actionManager to NULL and let KX_GameObject::GetActionManager() allocate a new BL_ActionManager when one is needed.
  * Use KX_GameObject::GetScene() instead of KX_GetActiveScene() in KX_GameObject::GetActionManager() to make sure we're using the object's scene instead of one where Python might currently be running from. This could avoid potential issues with playing actions for objects in other scenes.

8 years agoFurther fix for memory leaks in Freestyle Python API components:
Tamito Kajiyama [Tue, 14 May 2013 22:51:11 +0000 (22:51 +0000)]
Further fix for memory leaks in Freestyle Python API components:
- StrokeAttribute thickness setter
- BezierCurve (used from within BezierCurveShader)
- Smoother (used from within SmoothingShader)

8 years agoFix for a copy-and-paste bug in a Freestyle Python API helper function.
Tamito Kajiyama [Tue, 14 May 2013 22:16:18 +0000 (22:16 +0000)]
Fix for a copy-and-paste bug in a Freestyle Python API helper function.

8 years agoCycles:
Thomas Dinges [Tue, 14 May 2013 21:18:20 +0000 (21:18 +0000)]
* Code cleanup, remove unused "resolution" variable from the DeviceTask class, was never used.

8 years agoPatch to CMake build system.
Jürgen Herrmann [Tue, 14 May 2013 19:08:45 +0000 (19:08 +0000)]
Patch to CMake build system.
Install needed dlls for libjack.

8 years agoCycles :
Thomas Dinges [Tue, 14 May 2013 18:31:55 +0000 (18:31 +0000)]
Cycles :
* Use is_zero(a) rather than dot(a, a) == 0, saves some calculations.

8 years agoMoved main part of doc out of C code, as suggested by Campell...
Bastien Montagne [Tue, 14 May 2013 18:16:37 +0000 (18:16 +0000)]
Moved main part of doc out of C code, as suggested by Campell, thx.

8 years agoFix #35347: constraints with vertex group targets were not using the vertex group
Brecht Van Lommel [Tue, 14 May 2013 16:22:53 +0000 (16:22 +0000)]
Fix #35347: constraints with vertex group targets were not using the vertex group
weights, it assumed all weights were 1. This gave very different results with the
new bevel modifier due to slightly different vertex group interpolation.

8 years agoCMake build system update
Jürgen Herrmann [Tue, 14 May 2013 16:16:25 +0000 (16:16 +0000)]
CMake build system update
- Extending CMakeLists.txt to support builds with VC2012.
- Fix some typo in CMakeLists.txt
- Introduces experimental WITH_AVX_CPU to build with /arch:AVX (VC11 only)

8 years agoAPI doc for should look better now.
Bastien Montagne [Tue, 14 May 2013 15:33:59 +0000 (15:33 +0000)]
API doc for should look better now.

8 years agoFix a mismatch in help message (check_spelling_osl obviously checks OLS, and check_sp...
Bastien Montagne [Tue, 14 May 2013 14:37:51 +0000 (14:37 +0000)]
Fix a mismatch in help message (check_spelling_osl obviously checks OLS, and check_spelling_c, C code! :P )

8 years ago"Fix" for #35336. Added a warning in the doc string for to point...
Lukas Toenne [Tue, 14 May 2013 11:18:45 +0000 (11:18 +0000)]
"Fix" for #35336. Added a warning in the doc string for to point users at the recent API change from node.type enum identifiers to the generic node.bl_idname strings. Not really nice, but could prevent a few bug reports and make scripters' lifes easier.

8 years agobridge tool: fix for error in recent commit. missed NULL check for example face.
Campbell Barton [Tue, 14 May 2013 10:56:18 +0000 (10:56 +0000)]
bridge tool: fix for error in recent commit. missed NULL check for example face.

8 years agoFix for #35349, multiple viewers nodes crashing during render. The condition for...
Lukas Toenne [Tue, 14 May 2013 10:42:30 +0000 (10:42 +0000)]
Fix for #35349, multiple viewers nodes crashing during render. The condition for activating viewer nodes was completely overridden during renders. Changed this so viewer nodes are active only if both of these are true:

1) the node is tagged for recalc OR compo is in render mode
2) it is the currently active viewer (so only one viewer ever writes to the buffer)

8 years agoCode cleanup: fix confusing line of code with useless ||.
Brecht Van Lommel [Tue, 14 May 2013 10:20:58 +0000 (10:20 +0000)]
Code cleanup: fix confusing line of code with useless ||.

8 years agostyle cleanup
Campbell Barton [Tue, 14 May 2013 06:58:35 +0000 (06:58 +0000)]
style cleanup

8 years agotweak to r56784, no functional change, utility function worked confusingly.
Campbell Barton [Tue, 14 May 2013 06:10:26 +0000 (06:10 +0000)]
tweak to r56784, no functional change, utility function worked confusingly.

8 years agofix for problem where edge loop select would select too many vertices (extend selecti...
Campbell Barton [Tue, 14 May 2013 04:55:21 +0000 (04:55 +0000)]
fix for problem where edge loop select would select too many vertices (extend selection too far),

before & after:

8 years agorefactor bmesh edge loop walker,
Campbell Barton [Tue, 14 May 2013 04:09:02 +0000 (04:09 +0000)]
refactor bmesh edge loop walker,
was getting too complicated handing different cases at once, split out boundary case into its own branch.

8 years agoupdate libmv stub.
Campbell Barton [Tue, 14 May 2013 03:06:58 +0000 (03:06 +0000)]
update libmv stub.

8 years agobmesh api: add 'is_boundary' attribute to verts.
Campbell Barton [Tue, 14 May 2013 02:56:24 +0000 (02:56 +0000)]
bmesh api: add 'is_boundary' attribute to verts.

8 years agoAdded support for WITH_CXX_GUARDEDALLOC build option to the Freestyle module.
Tamito Kajiyama [Mon, 13 May 2013 22:58:27 +0000 (22:58 +0000)]
Added support for WITH_CXX_GUARDEDALLOC build option to the Freestyle module.

8 years agoFix for a memory leak during Freestyle stroke shading.
Tamito Kajiyama [Mon, 13 May 2013 22:50:12 +0000 (22:50 +0000)]
Fix for a memory leak during Freestyle stroke shading.

8 years agoCycles CUDA: in case of cryptic error messages in the console, refer to wiki
Brecht Van Lommel [Mon, 13 May 2013 21:36:48 +0000 (21:36 +0000)]
Cycles CUDA: in case of cryptic error messages in the console, refer to wiki
documentation for possible solutions.

8 years agoFix #35340: 3D manipulator not working right after undoing with cmd+Z on OS X.
Brecht Van Lommel [Mon, 13 May 2013 21:19:30 +0000 (21:19 +0000)]
Fix #35340: 3D manipulator not working right after undoing with cmd+Z on OS X.

Another issue with the recent Ghost changes here. For some reason key up events
are not coming through when the command key is pressed. I can't figure out why,
for now just always handle them, still fixes the original bug.

8 years agoThe usual fix for blenderplayer. I didn't have time to test scons but looks like...
Antony Riakiotakis [Mon, 13 May 2013 20:42:18 +0000 (20:42 +0000)]
The usual fix for blenderplayer. I didn't have time to test scons but looks like the missing library on CMake is already present there.

8 years agoPatch [#35234]:
Jürgen Herrmann [Mon, 13 May 2013 20:27:05 +0000 (20:27 +0000)]
Patch [#35234]:

Fix GetWindowsLon and SetWindowsLong issues with VS2012 and Windows 8.
Remove unneeded #ifdef block for GWL_WNDPROC and GWL_USERDATA

8 years agofix for strange behavior with loop select involving ngons,
Campbell Barton [Mon, 13 May 2013 17:42:27 +0000 (17:42 +0000)]
fix for strange behavior with loop select involving ngons,
when selecting a loop with quads on one side an ngon on another - never select the outer boundary edge of the ngon.

8 years agocode cleanup: remove duplicate calls to 'BMW_current_state'
Campbell Barton [Mon, 13 May 2013 16:35:28 +0000 (16:35 +0000)]
code cleanup: remove duplicate calls to 'BMW_current_state'

8 years agoCycles:
Thomas Dinges [Mon, 13 May 2013 15:31:59 +0000 (15:31 +0000)]
* Fix compile error, when building with __KERNEL_SSE__

8 years agoCleanup and small improvements to libmv
Sergey Sharybin [Mon, 13 May 2013 14:39:06 +0000 (14:39 +0000)]
Cleanup and small improvements to libmv

- Added const modifiers where it makes sense and
  helps keep code safe.
- Reshuffled argument to match <inputs>,<outputs>
  convention on parameters.
- Pass values to ApplyRadialDistortionCameraIntrinsics
  by a constant reference.
  This will save lots of CPU ticks passing relatively
  heavy jet objects to this function when running
  bundle adjustment.

8 years agonew bevel: fix for crash in merge, could result in collapsing faces being invalid...
Campbell Barton [Mon, 13 May 2013 14:31:45 +0000 (14:31 +0000)]
new bevel: fix for crash in merge, could result in collapsing faces being invalid. rather then splice each edge, use weld_verts operator which handles removing degenerate geometry.

8 years agoFix sculpt getting slower as you paint a longer stroke. Partial redraw was
Brecht Van Lommel [Mon, 13 May 2013 14:17:58 +0000 (14:17 +0000)]
Fix sculpt getting slower as you paint a longer stroke. Partial redraw was
redrawing the whole area that was painted on from the start of the stroke,
should only do the last part.

8 years agoFix #35342: multisample antialiasing makes tooltips look blurry.
Brecht Van Lommel [Mon, 13 May 2013 13:45:45 +0000 (13:45 +0000)]
Fix #35342: multisample antialiasing makes tooltips look blurry.

8 years agoremove BLI_array use in bmesh mirror, add BMO_iter_as_arrayN() function.
Campbell Barton [Mon, 13 May 2013 13:44:20 +0000 (13:44 +0000)]
remove BLI_array use in bmesh mirror, add BMO_iter_as_arrayN() function.

8 years agoApply scale on scene reconstruction when applying scale on camera
Sergey Sharybin [Mon, 13 May 2013 13:37:05 +0000 (13:37 +0000)]
Apply scale on scene reconstruction when applying scale on camera

This means when you've got reconstructed scene assigned to a
3d camera (via camera solver constraint) and applies scale on
this camera from Ctrl-A menu, scale will be applied on the
reconstructed scene and reset camera size to identity.

This is very useful feature for scene orientation, when you'll
just scale camera by S in the viewport to match bundles
some points in the space, and then you'll easiy make camera
have identity scale (which is needed for nice working moblur
and other things mentioning by Sebastian :) without loosing
scale of bundles themselves.

Behavior of apply scale for cameras without clip assigned
to them does not change at all.

8 years agoFix #35337: sculpt performance regression, partial redraw was not working anymore
Brecht Van Lommel [Mon, 13 May 2013 13:32:42 +0000 (13:32 +0000)]
Fix #35337: sculpt performance regression, partial redraw was not working anymore
due to paint cursor redraw problem.

8 years agonew bridge tool: fix for cases with it would crash when existing faces matched the...
Campbell Barton [Mon, 13 May 2013 12:58:25 +0000 (12:58 +0000)]
new bridge tool: fix for cases with it would crash when existing faces matched the newly created ones.

8 years agoAdded RNA access to mask spline's points.
Sergey Sharybin [Mon, 13 May 2013 12:24:35 +0000 (12:24 +0000)]
Added RNA access to mask spline's points.

Straightforward patch, point tructure was already defined,
was just matter of defining RNA collection property for
mask spline.

Available via: mask.layers[0].splines[0].points

8 years agofix [#35308] Edge Split operator splits unselected edges
Campbell Barton [Mon, 13 May 2013 12:09:21 +0000 (12:09 +0000)]
fix [#35308] Edge Split operator splits unselected edges

8 years agoFix #35330: Blur node crash due to size overflow
Sergey Sharybin [Mon, 13 May 2013 11:52:04 +0000 (11:52 +0000)]
Fix #35330: Blur node crash due to size overflow

Issue was caused by too hight value used for size,
which came from infinite Z-buffer point.

Solved the crash by clamoing maximal gaussian table
radius to 30K, which seems to be reasonable.

8 years agofix for bridge flipping, loops pointing away from eachother (over 90d difference...
Campbell Barton [Mon, 13 May 2013 11:21:33 +0000 (11:21 +0000)]
fix for bridge flipping, loops pointing away from eachother (over 90d difference) would flip
now check the loops are facing eachother, taking their relative positions into account.

8 years agoC forbids having variables declarations in the middle of code block.
Sergey Sharybin [Mon, 13 May 2013 11:20:32 +0000 (11:20 +0000)]
C forbids having variables declarations in the middle of code block.

8 years agoFix #35329: action actuator crash with replacemesh, pointers got outdated.
Brecht Van Lommel [Mon, 13 May 2013 10:54:57 +0000 (10:54 +0000)]
Fix #35329: action actuator crash with replacemesh, pointers got outdated.
No need to cache this, creating it is quick.

8 years agoFix #35327: compositing Z combine node was not giving the same result as previous
Brecht Van Lommel [Mon, 13 May 2013 10:40:42 +0000 (10:40 +0000)]
Fix #35327: compositing Z combine node was not giving the same result as previous
versions when the Z values were the same, Also was inconsistent between full sample

8 years agoHeaders cleanup.
Sergey Sharybin [Mon, 13 May 2013 09:51:36 +0000 (09:51 +0000)]
Headers cleanup.

8 years agoAdded an entry for Reroute node in the node categories. Reroute is not a "real" node...
Lukas Toenne [Mon, 13 May 2013 09:32:17 +0000 (09:32 +0000)]
Added an entry for Reroute node in the node categories. Reroute is not a "real" node, but for users it's a bit hard to find, so a menu entry is ok for now.

Eventually a context menu for nodes could be a nicer solution: right-click on node link opening a popup with operators for the node, socket or link under cursor, including option "Insert Reroute".

8 years agoNo end point in UI messages...
Bastien Montagne [Mon, 13 May 2013 07:32:48 +0000 (07:32 +0000)]
No end point in UI messages...

8 years agofix [#35335] Crash when rendering a text object with a remesh modifier and a material...
Campbell Barton [Mon, 13 May 2013 07:13:28 +0000 (07:13 +0000)]
fix [#35335] Crash when rendering a text object with a remesh modifier and a material texture

8 years agochange to drag-lock behavior, only use with outliner (this way layers can be changed...
Campbell Barton [Mon, 13 May 2013 06:51:13 +0000 (06:51 +0000)]
change to drag-lock behavior, only use with outliner (this way layers can be changed all at once)

8 years agofix for toggle drag not working in popups (move layers for eg)
Campbell Barton [Mon, 13 May 2013 06:23:50 +0000 (06:23 +0000)]
fix for toggle drag not working in popups (move layers for eg)

8 years agofix for building with mingw
Campbell Barton [Mon, 13 May 2013 05:40:51 +0000 (05:40 +0000)]
fix for building with mingw

8 years agoBGE: Fix for [#35320] "Crash When Adding Property without Setting Material" reported...
Mitchell Stokes [Mon, 13 May 2013 05:37:45 +0000 (05:37 +0000)]
BGE: Fix for [#35320] "Crash When Adding Property without Setting Material" reported by Leon Cheung.

Adding an extra NULL check to draw_mesh_text() to avoid accessing a NULL material array.

8 years agoBGE: I had the assert in stubs.c backwards. However, it looks like the Blenderplayer...
Mitchell Stokes [Mon, 13 May 2013 04:08:16 +0000 (04:08 +0000)]
BGE: I had the assert in stubs.c backwards. However, it looks like the Blenderplayer ends up making a bad level call on startup. So, I've added a way to easily turn the asserts on and off (default to off) to allow people to still hunt down bad level calls without interfering with other people's debug builds.

8 years agoBGE: Adding an assert(true); to every function defined in stubs.c. This should help...
Mitchell Stokes [Mon, 13 May 2013 02:59:13 +0000 (02:59 +0000)]
BGE: Adding an assert(true); to every function defined in stubs.c. This should help in hunting down errors caused by code calling into stubs.c, which shouldn't happen while the Blenderplayer is running. Remember, stubs.c is just to help with linking, these calls should never be used!

8 years agoBGE: Tweaking the linking order of the Blenderplayer (CMake) to avoid needing to...
Mitchell Stokes [Mon, 13 May 2013 02:49:18 +0000 (02:49 +0000)]
BGE: Tweaking the linking order of the Blenderplayer (CMake) to avoid needing to put BLI code in stubs.c. This fixes an infinite loop with the Edge Split modifier in the Blenderplayer. SCons still has to be tested.

8 years agoadd missing STACK_INIT, also quiet float <> double conversion warnings.
Campbell Barton [Mon, 13 May 2013 02:10:59 +0000 (02:10 +0000)]
add missing STACK_INIT, also quiet float <> double conversion warnings.

8 years agofix [#35326] Even edge slide on open edge crashes Blender
Campbell Barton [Mon, 13 May 2013 02:01:35 +0000 (02:01 +0000)]
fix [#35326] Even edge slide on open edge crashes Blender

8 years agoForgot this in one of previous commits
Sergey Sharybin [Sun, 12 May 2013 22:40:12 +0000 (22:40 +0000)]
Forgot this in one of previous commits

Idea here is to be able to have all files opened in IDE
and not confuse it by the same function implemented in
multiple files.

8 years agoCompilation fix for recent commit.
Sergey Sharybin [Sun, 12 May 2013 22:30:34 +0000 (22:30 +0000)]
Compilation fix for recent commit.

8 years agoRemplace bunch of annoying ifdefs in tracking.c with a
Sergey Sharybin [Sun, 12 May 2013 22:17:37 +0000 (22:17 +0000)]
Remplace bunch of annoying ifdefs in tracking.c with a

Makes code in much easier to understand and modify,
without worring to breck compulation with Libmv disabled.

It is still possible compilation will break due to libmv-capi
changes, but that's not happening so much often.

8 years agoFix ctrl+(shift)+tab shortcut key not working on OS X after recent bugfix to
Brecht Van Lommel [Sun, 12 May 2013 22:15:05 +0000 (22:15 +0000)]
Fix ctrl+(shift)+tab shortcut key not working on OS X after recent bugfix to
interact better with system shortcuts.

This is a special shortcut for switching between views and does not get
delivered directly to our view when we pass it through the application key
event handling path. We only have a single OpenGL view, so there's no need to
pass it on to the application, instead just interpret it directly.

8 years agoFix for keyed marker search not happening correct in some cases
Sergey Sharybin [Sun, 12 May 2013 21:57:57 +0000 (21:57 +0000)]
Fix for keyed marker search not happening correct in some cases

Was an heuristic failure writen for cases when there's no keyframe
in desired direction. Shall all be fine now.

8 years agoSpeedup for rendered viewport for blender internal
Sergey Sharybin [Sun, 12 May 2013 19:01:23 +0000 (19:01 +0000)]
Speedup for rendered viewport for blender internal

Display code was a bottleneck here, so made it so render
result draw follows Image Draw settings.

8 years agoFix for "no functional changes" commit
Sergey Sharybin [Sun, 12 May 2013 18:50:39 +0000 (18:50 +0000)]
Fix for "no functional changes" commit

Apparently eitehr merge conflict happened, or i had
too much depression in blood, but first camera was
just wrong after reconstruction.

8 years agoViewport Render Internal:
Ton Roosendaal [Sun, 12 May 2013 17:16:43 +0000 (17:16 +0000)]
Viewport Render Internal:

Animated characters were not rendering yet, the render code for it
caused a signal for re-draw and re-render, in eternal loop.

Solved by forcing viewport render to use the same derivedmesh data
as for 3d viewport drawing. Faster too.

8 years agoCycles / Orthographic Camera:
Thomas Dinges [Sun, 12 May 2013 17:14:01 +0000 (17:14 +0000)]
Cycles / Orthographic Camera:
* Avoid one unneeded division by 1.0f and save one variable assignment.

8 years agoUpdate bundled version of libmv
Sergey Sharybin [Sun, 12 May 2013 17:06:00 +0000 (17:06 +0000)]
Update bundled version of libmv

- Ensures fix for msvc2012 is applying correct.
- Some code cleanup to match libmv's code style.
- Do not include points which were intersect
  behind the camera to a reconstruction.
- Includes changes needed for keyframe selection.

8 years agoFix build error on MinGW64
Antony Riakiotakis [Sun, 12 May 2013 16:52:42 +0000 (16:52 +0000)]
Fix build error on MinGW64

8 years agoRefine markers position operator
Sergey Sharybin [Sun, 12 May 2013 16:04:14 +0000 (16:04 +0000)]
Refine markers position operator

This operator will run a tracker from previous
keyframe to current frame for all selected markers.
Current markers positions are considering initial
position guess which could be updated by a tracker
for better match.

Useful in cases when feature disappears from the
frame and then appears again. Usage in this case
is the following:

- When feature point re-appeared on frame, manully
  place marker on it.
- Use Refine Markers operation (which is in Track
  panel) to allow tracker to find a better match.

Depending on direction of tracking use either
Forwards or Backwards refining. It's easy: if
trackign happens forwards, use Refine Frowards,
otherwise use Refine Backwards :)

8 years agoDocumentation for functions inside tracking.c
Sergey Sharybin [Sun, 12 May 2013 16:04:08 +0000 (16:04 +0000)]
Documentation for functions inside tracking.c

Additional changes:

- Cleaned up sources to reduce mess in some
  big functions.
- Removed unused function from libmv c-api.
- Made functions naming more consistent.
- Use bool for internal stuff in tracking.c.

Shall be no functional changes :)

8 years agoFix for [#35238] Blender does not save custom orientations from "view"
Bastien Montagne [Sun, 12 May 2013 15:52:05 +0000 (15:52 +0000)]
Fix for [#35238] Blender does not save custom orientations from "view"

Actually more a feature request... Now create orientations operator has an additional option, use_view, when this one is enabled it will use current view instead of active object to create the new space.

Also made some cleanup (made some funcs static).

8 years agoRender Layers UI
Pablo Vazquez [Sun, 12 May 2013 15:25:35 +0000 (15:25 +0000)]
Render Layers UI
Expand the Layers panel by default on Blender Internal as well.

8 years agofix for crash with new bridge method used with invalid edge-loops.
Campbell Barton [Sun, 12 May 2013 15:24:02 +0000 (15:24 +0000)]
fix for crash with new bridge method used with invalid edge-loops.

8 years agoFix crash when closing blend files with no line styles
Sv. Lockal [Sun, 12 May 2013 14:45:15 +0000 (14:45 +0000)]
Fix crash when closing blend files with no line styles

8 years agoremove BLI_array allocations from uv/color reverse, rotate.
Campbell Barton [Sun, 12 May 2013 14:45:09 +0000 (14:45 +0000)]
remove BLI_array allocations from uv/color reverse, rotate.

8 years agoCycles / Math:
Thomas Dinges [Sun, 12 May 2013 14:13:29 +0000 (14:13 +0000)]
Cycles / Math:
* Add M_2PI_F and M_4PI_F constants and use them inside the codebase.

8 years agoFix material/lamp drivers not working sometimes when they were used by multiple
Brecht Van Lommel [Sun, 12 May 2013 13:33:20 +0000 (13:33 +0000)]
Fix material/lamp drivers not working sometimes when they were used by multiple
objects, found while looking into another bug.

8 years agoFix for [#35224] Transform Orientation - order inconsistency
Bastien Montagne [Sun, 12 May 2013 13:16:11 +0000 (13:16 +0000)]
Fix for [#35224] Transform Orientation - order inconsistency

Fix turned out to remove as much "manual UI" from 3D view header as possible. Mode selector and all transform manipulators/orientations stuff are now RNA-based UI (leaving basically only edit mesh select modes with custom handlers, as they have some quite specific features).

To achieve this, four main modifications were done:
* enum-operator-generated menus are now MENU (i.e. dropdown lists) in headers too.
* All bit-flag enums expanded in ROW buttons now have a handling consistent with e.g. layers, or what we already have for transform manipulators, i.e. clicking select only one element, shift-click to select multiple ones.
* Consequently, the three RNA booleans manipulators flags are merged into a single bit-flag enum (yes, this is also an API change, though I doubt many scripts use it).
* Now the width of enum-based dropdown lists is computed from longest item name in enum, no more from a dummy place holder string (when no label/name is given).

All this allows to remove some code from 3DView/transform areas, that was actually mostly duplicating RNA/operator one.

Also done a few optimizations here and there (among others, do not pass &numitems to RNA_property_enum_items() when you do not need it, saves at least an iteration over enum items to count them).

Many thanks to Brecht for the reviews!

8 years ago3D viewport render preview:
Ton Roosendaal [Sun, 12 May 2013 13:15:41 +0000 (13:15 +0000)]
3D viewport render preview:

- Put it available as a default now (no debug value needed)
- Fixed viewport size error, viewport was badly set
  (visible with border render, property regions)
- Fixed hanging lock in conflict between drawing and initialize
  new renders.