7 years agopartial revert of commit 54126 - (BGE UI: removing " use_occlusion_culling" from...
Dalai Felinto [Thu, 16 May 2013 21:37:24 +0000 (21:37 +0000)]
partial revert of commit 54126 - (BGE UI: removing " use_occlusion_culling" from the ui)
bug reported by Eloy Felix over email

Apparently there are some files that will perform better with "use_occlusion_culling" off.
For now the UI option can return.

Technically this could make into 2.67a, but the string is not localized (it'll be in English).
Not sure what is more important here:

- consistent UI OR to expose in the UI an option some people need

7 years agoCycles / BSSRDF:
Thomas Dinges [Thu, 16 May 2013 18:39:45 +0000 (18:39 +0000)]
Cycles / BSSRDF:
* Avoid one max() call for the bssrdf radius, the if condition already checks for values < BSSRDF_MIN_RADIUS.

7 years agoworkaround for loopselect-slide (with multicut enabled) changing from vertex-select...
Campbell Barton [Thu, 16 May 2013 18:33:07 +0000 (18:33 +0000)]
workaround for loopselect-slide (with multicut enabled) changing from vertex-select to edge-select.
this is needed to slide, but wasn't so nice for users, now restore the original mode.

7 years agocode cleanup: double promotion warnings.
Campbell Barton [Thu, 16 May 2013 17:20:56 +0000 (17:20 +0000)]
code cleanup: double promotion warnings.

7 years ago* This is embarrassing...
Thomas Dinges [Thu, 16 May 2013 15:59:05 +0000 (15:59 +0000)]
* This is embarrassing...

7 years agoCycles:
Thomas Dinges [Thu, 16 May 2013 15:47:09 +0000 (15:47 +0000)]
* Revert part of r56832, if code gets more complicated, it's better to keep it more logical here.

7 years agofix for crash in grid-fill where it was possible for rail edges to overlap.
Campbell Barton [Thu, 16 May 2013 15:28:57 +0000 (15:28 +0000)]
fix for crash in grid-fill where it was possible for rail edges to overlap.

7 years agoFix #35388, grouped nodes not editable in properties ui.
Lukas Toenne [Thu, 16 May 2013 15:06:18 +0000 (15:06 +0000)]
Fix #35388, grouped nodes not editable in properties ui.

The issue here was that the "active" material node depends on the editor context. Previously (< 2.67) there was only 1 edited node group possible globally throughout Blender, so the active material in the context could be resolved more easily. The solution now involves the active_viewer_key variable (first introduced for compositor viewer nodes in r56271, naming is a bit awkward but hard to change in DNA). This key defines the "last modified" node tree to resolve ambiguity of active context items. For single editors the result is the same as in 2.66, if multiple editors are used with different node groups the last modified tree is used.

7 years agogrid-fill: fix error in detecting face flipping.
Campbell Barton [Thu, 16 May 2013 13:58:21 +0000 (13:58 +0000)]
grid-fill: fix error in detecting face flipping.

7 years agoFix #35384: animation to enable/disable render layers was applied one frame too
Brecht Van Lommel [Thu, 16 May 2013 12:03:21 +0000 (12:03 +0000)]
Fix #35384: animation to enable/disable render layers was applied one frame too
late when rendering animations.

7 years agoCMakeLists.txt changes to use new static Jack libs with VC2012
Jürgen Herrmann [Thu, 16 May 2013 11:24:19 +0000 (11:24 +0000)]
CMakeLists.txt changes to use new static Jack libs with VC2012

7 years agoFix compile error on VS2012.
Jürgen Herrmann [Thu, 16 May 2013 11:04:01 +0000 (11:04 +0000)]
Fix compile error on VS2012.
Unused variables (for debug only) give an error.

7 years agofix [#35385] freestyle rendering crash blender
Campbell Barton [Thu, 16 May 2013 08:04:45 +0000 (08:04 +0000)]
fix [#35385] freestyle rendering crash blender

7 years agobmesh grid fill: interpolate vertex customdata (useful for vertex weights and shapekeys)
Campbell Barton [Thu, 16 May 2013 07:21:34 +0000 (07:21 +0000)]
bmesh grid fill: interpolate vertex customdata (useful for vertex weights and shapekeys)

7 years agoquiet warnings from r56825
Campbell Barton [Thu, 16 May 2013 03:55:47 +0000 (03:55 +0000)]
quiet warnings from r56825
- using vars before checking they are defined
- /* within comment

7 years agoFix for [#35352] Freestyle + Geometry Spatial Noise freezes on render.
Tamito Kajiyama [Thu, 16 May 2013 00:20:57 +0000 (00:20 +0000)]
Fix for [#35352] Freestyle + Geometry Spatial Noise freezes on render.

SpatialNoiseShader, as well as SmoothingShader were not updating stroke length after
geometry modification, causing an infinite loop in Stroke::Resample(int iNPoints) due to
incorrect length-based resampling of stroke vertices.

7 years agoFix #35368:
Brecht Van Lommel [Thu, 16 May 2013 00:07:01 +0000 (00:07 +0000)]
Fix #35368:
* Editing number of segments for particle hair did not update the viewport.
* Hidden particles were confusing, the paths were drawn but without the points.
  Now it draws the path faded to indicate that they are hidden/locked.
* Select tips/roots operators now have options to select/deselect/toggle/invert.

7 years agoFix #35372: sculpting/painting long brush strokes with small brush size would
Brecht Van Lommel [Wed, 15 May 2013 22:55:30 +0000 (22:55 +0000)]
Fix #35372: sculpting/painting long brush strokes with small brush size would
take up a lot of memory.

The operator was recording an array with all stroke points. However this was not
particularly useful, only sculpt mode had exec() implemented to redo the stroke,
but it was not registering the operator anyway so there was no way to access the
data after the operator was done. So no one was using this anyway.

I did now implement exec for the paint modes so you can call the operator with
stroke points from a script.

7 years agoFix #35355: 2D image paint View mapping mode was dependent on zoom, this was
Brecht Van Lommel [Wed, 15 May 2013 21:03:57 +0000 (21:03 +0000)]
Fix #35355: 2D image paint View mapping mode was dependent on zoom, this was
wrong, it should just fit the texture in the brush circle.

7 years agoCode cleanup / Cycles:
Thomas Dinges [Wed, 15 May 2013 20:38:17 +0000 (20:38 +0000)]
Code cleanup / Cycles:
* Some simplification of closure code (Velvet and Toon).

7 years agobmesh, grid fill tool.
Campbell Barton [Wed, 15 May 2013 20:34:40 +0000 (20:34 +0000)]
bmesh, grid fill tool.

This uses 2 edge loops and fills them with a grid, taking into account curvature of surrounding edges.
Access from face menu: Ctrl+F,G

7 years agoFix #35376: node editor throwing python error on some files saved with 2.66 test...
Brecht Van Lommel [Wed, 15 May 2013 19:24:07 +0000 (19:24 +0000)]
Fix #35376: node editor throwing python error on some files saved with 2.66 test builds.

7 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.

7 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

7 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.

7 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.

7 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.

7 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

7 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.

7 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.

7 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.

7 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! :)

7 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.

7 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.

7 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.

7 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

7 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.

7 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.

7 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.

7 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).

7 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).

7 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.

7 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.

7 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)

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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)

7 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.

7 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 )

7 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.

7 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.

7 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)

7 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 ||.

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

7 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.

7 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:

7 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.

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

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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

7 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.

7 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'

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

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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.

7 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

7 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

7 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.

7 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.

7 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.

7 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.

7 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

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

7 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".

7 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...

7 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

7 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)

7 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)

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

7 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.

7 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.

7 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!

7 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.

7 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.

7 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