blender.git
5 years agoFix T40246: Speaker Object is missing from Tabs > 'Create' tab in the Toolbar.
Bastien Montagne [Sun, 18 May 2014 07:55:47 +0000 (09:55 +0200)]
Fix T40246: Speaker Object is missing from Tabs > 'Create' tab in the Toolbar.

5 years agoUpdate netbeans projectfile generator to v8
Campbell Barton [Sun, 18 May 2014 05:55:00 +0000 (15:55 +1000)]
Update netbeans projectfile generator to v8

5 years agoFix T40230: Recursion check when adding objects to groups is incorrect.
Lukas Tönne [Sat, 17 May 2014 16:28:30 +0000 (18:28 +0200)]
Fix T40230: Recursion check when adding objects to groups is incorrect.

rB568f0c7 added a recursion check that is supposed to prevent cyclic
cases where a group includes itself via dupli instancing.

The check function was descending into all groups nested inside the
target group - which works for single level recursion like in the test
case, but does not handle generic recursion. Basically it asked:
"is object X in the group already or in any instanced dupligroup?"

The new check instead asks:
"is group G dupli'd by X or any instanced subgroup thereof?"
which is what we really need to know.

5 years agoFix T40236: Undo not pushed in old-school node curve tool button functions.
Lukas Tönne [Sat, 17 May 2014 14:48:06 +0000 (16:48 +0200)]
Fix T40236: Undo not pushed in old-school node curve tool button functions.

5 years agoFix T39757: missing cuda libary on linx, now also try to find libcuda.so.1.
Brecht Van Lommel [Sat, 17 May 2014 13:31:47 +0000 (15:31 +0200)]
Fix T39757: missing cuda libary on linx, now also try to find libcuda.so.1.

I'm not sure this should be needed, but some particular systems don't have
libcuda.so so we do this now.

5 years agoFix T39757: missing cuda libary on linx, now also try to find libcuda.so.1.
Brecht Van Lommel [Sat, 17 May 2014 13:14:20 +0000 (15:14 +0200)]
Fix T39757: missing cuda libary on linx, now also try to find libcuda.so.1.

I'm not sure this should be needed, but some particular systems don't have
libcuda.so so we do this now.

5 years agoText 3D: remove hardcoded keymaps from menu
Campbell Barton [Sat, 17 May 2014 10:00:14 +0000 (20:00 +1000)]
Text 3D: remove hardcoded keymaps from menu

5 years agoRevised the debug code added in the commit rB4958aff780a3 according to the raised...
Tamito Kajiyama [Sat, 17 May 2014 08:40:04 +0000 (17:40 +0900)]
Revised the debug code added in the commit rB4958aff780a3 according to the raised concern.

5 years agoFix T40231: Crash with matcaps
Campbell Barton [Sat, 17 May 2014 04:48:10 +0000 (14:48 +1000)]
Fix T40231: Crash with matcaps

5 years agoFix mistake in recent patch
Campbell Barton [Sat, 17 May 2014 04:36:05 +0000 (14:36 +1000)]
Fix mistake in recent patch

5 years agoMinor changes for standalone mathutils
Campbell Barton [Sat, 17 May 2014 02:05:16 +0000 (12:05 +1000)]
Minor changes for standalone mathutils

5 years agoFreestyle: Added a piece of debug code for checking the consistency of face normals.
Tamito Kajiyama [Sat, 17 May 2014 01:36:39 +0000 (10:36 +0900)]
Freestyle: Added a piece of debug code for checking the consistency of face normals.

The code was found helpful while addressing T39669 and might help solving similar
issues related to face normals in the future.

5 years agoFix T39669: Freestyle: Curve with extrude>0 causes warnings in console.
Tamito Kajiyama [Fri, 16 May 2014 23:49:28 +0000 (08:49 +0900)]
Fix T39669: Freestyle: Curve with extrude>0 causes warnings in console.

The reported Freestyle warnings were due to wrong normals of filled faces at both ends
of a 2D extruded curve. The problem is detailed in the comment #19 of T39669.

The cause of the bug was an inconsistency in the use of vertex indices between
BKE_mesh_nurbs_displist_to_mdata() and init_render_curve() in the case of
DispList::type equal to DL_INDEX3.

This commit also fixes a related bug that the normals of filled faces were not inverted
when a scale of the curve object is set to a negative value (e.g., the Z scale was -1).

Reviewers: campbellbarton

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D532

5 years agoFix T38895: Unstable behavior using VehicleWrapper after Bullet 2.82 update
Mitchell Stokes [Fri, 16 May 2014 17:40:23 +0000 (10:40 -0700)]
Fix T38895: Unstable behavior using VehicleWrapper after Bullet 2.82 update

The Bullet 2.82 update uses a different method for ray casting that
seems incompatible with our older files. So, for now we just force the
vehicle physics to use the older ray casting method.

5 years agoFix T40223: Setting bevel_factor_mapping_start/end crashes
Campbell Barton [Fri, 16 May 2014 15:01:43 +0000 (01:01 +1000)]
Fix T40223: Setting bevel_factor_mapping_start/end crashes

Patch from Lukas Treyer

5 years agoFix T40226: Keep collapse-menu when splitting areas
Campbell Barton [Fri, 16 May 2014 14:28:00 +0000 (00:28 +1000)]
Fix T40226: Keep collapse-menu when splitting areas

5 years agoFix Bevel bugs T39726 and T39108, bevels with wire edges.
Howard Trickey [Fri, 16 May 2014 14:28:15 +0000 (10:28 -0400)]
Fix Bevel bugs T39726 and T39108, bevels with wire edges.

This updates the fix in rB27db75363, which had to be undone
because it broke other bevels.
It also fixes cases where edges went away went doing vertex
bevel on vertices with some wire edges.

5 years agoFix T40202: File selector operators not reported in info view
Campbell Barton [Fri, 16 May 2014 11:25:48 +0000 (21:25 +1000)]
Fix T40202: File selector operators not reported in info view

5 years agoAdd assert to check for buffer overrun
Campbell Barton [Fri, 16 May 2014 08:09:24 +0000 (18:09 +1000)]
Add assert to check for buffer overrun

5 years agoFreestyle: Fix for texture spacing reset to a non-default value on load of old .blend...
Tamito Kajiyama [Fri, 16 May 2014 02:10:25 +0000 (11:10 +0900)]
Freestyle: Fix for texture spacing reset to a non-default value on load of old .blend files.

Problem report by Light BWK through personal communications. Thanks!

5 years ago3D Text: Change textbox placement to ignore font scale
Campbell Barton [Fri, 16 May 2014 00:27:52 +0000 (10:27 +1000)]
3D Text: Change textbox placement to ignore font scale

Logic here was very stupid, texboxes would have their initial
locations scaled by font size but not their width/height.

Now its possible to change font size while keeping the textbox layout.

Other fixes

- tab character didn't work properly with textboxes.
- memory leak when VFontData was missing.

5 years agoFix part of T39708, don't overupdate particles when changine active
Antony Riakiotakis [Thu, 15 May 2014 22:23:05 +0000 (01:23 +0300)]
Fix part of T39708, don't overupdate particles when changine active
particle texture slot

5 years ago3D Text: replace multiple float arrays with struct (much easier to understand)
Campbell Barton [Thu, 15 May 2014 21:45:13 +0000 (07:45 +1000)]
3D Text: replace multiple float arrays with struct (much easier to understand)

5 years agoBGE Physics: Better follow the old (pre-cleanup) logic for determining bounds types.
Mitchell Stokes [Thu, 15 May 2014 05:36:28 +0000 (22:36 -0700)]
BGE Physics: Better follow the old (pre-cleanup) logic  for determining bounds types.

This prevents older files from breaking.

5 years agoFix T40214: Wrong size calculation on new curve objects
Bastien Montagne [Thu, 15 May 2014 20:08:27 +0000 (22:08 +0200)]
Fix T40214: Wrong size calculation on new curve objects

Do not take into account grid size in objectdata creation itself, this is handled on a higher level.

5 years agoUse warning instead of info for previous commit
Antony Riakiotakis [Thu, 15 May 2014 20:06:29 +0000 (23:06 +0300)]
Use warning instead of info for previous commit

5 years agoFix T39684, warn when entering sculpt mode with an object with non-
Antony Riakiotakis [Thu, 15 May 2014 19:49:02 +0000 (22:49 +0300)]
Fix T39684, warn when entering sculpt mode with an object with non-

5 years agoFix cycles bug with new transparent shadow code, giving too much volume shadow.
Brecht Van Lommel [Thu, 15 May 2014 19:25:46 +0000 (21:25 +0200)]
Fix cycles bug with new transparent shadow code, giving too much volume shadow.

5 years agoFix rare crash introduced by recent own commit
Antony Riakiotakis [Thu, 15 May 2014 19:01:45 +0000 (22:01 +0300)]
Fix rare crash introduced by recent own commit

5 years agoMask vertex colors used to be totally ignored
Sergey Sharybin [Thu, 15 May 2014 16:34:55 +0000 (18:34 +0200)]
Mask vertex colors used to be totally ignored

5 years agoFix T39763: Blender renders disabled Render Layers using Blender Internal
Sergey Sharybin [Thu, 15 May 2014 16:21:02 +0000 (18:21 +0200)]
Fix T39763: Blender renders disabled Render Layers using Blender Internal

For now only disables scene render if all the layers are disabled, but scene
will still be rendered if it's used in compo, has enabled layers which are
not used by compo.

Current pipeline doesn't allow to handle such cases nicely, so leaving it
for later.

5 years agoFix T39978: Sculpting shapekeys - Using Smooth tool, turns shapekey into Basis.
Sergey Sharybin [Thu, 15 May 2014 15:45:35 +0000 (17:45 +0200)]
Fix T39978: Sculpting shapekeys - Using Smooth tool, turns shapekey into Basis.

Smooth brush requires deformed coordinates array to present.

5 years agoFix T40053: Cloth simulation, rest shape key does not function
Sergey Sharybin [Thu, 15 May 2014 12:18:35 +0000 (14:18 +0200)]
Fix T40053: Cloth simulation, rest shape key does not function

It was a regression since 5d49eff. Not really sure about proper solution
here, so used a bit workaround-ish way for now.

Hopefully new cloth will be landed after this GSoC anyway.

5 years agoFix for cursor location with xoffset & flush alignment
Campbell Barton [Thu, 15 May 2014 11:59:16 +0000 (21:59 +1000)]
Fix for cursor location with xoffset & flush alignment

5 years agoRemove redundant NULL check
Campbell Barton [Thu, 15 May 2014 10:13:43 +0000 (20:13 +1000)]
Remove redundant NULL check

5 years agoFix 3D font selection and material lagging behind with vertical cursor motion
Campbell Barton [Thu, 15 May 2014 09:06:25 +0000 (19:06 +1000)]
Fix 3D font selection and material lagging behind with vertical cursor motion

5 years agoCode cleanup: remove '\r' check for 3d text, its removed on load even on windows
Campbell Barton [Thu, 15 May 2014 08:04:50 +0000 (18:04 +1000)]
Code cleanup: remove '\r' check for 3d text, its removed on load even on windows

5 years agoFix T40204: x-offset textbox failed with center/justify/flush
Campbell Barton [Thu, 15 May 2014 07:27:06 +0000 (17:27 +1000)]
Fix T40204: x-offset textbox failed with center/justify/flush

5 years agoFix for right aligned text ignoring xoffset
Campbell Barton [Thu, 15 May 2014 07:09:46 +0000 (17:09 +1000)]
Fix for right aligned text ignoring xoffset

5 years agoCMake/SCons: finish removing MSVC2012 references
Campbell Barton [Thu, 15 May 2014 06:12:15 +0000 (16:12 +1000)]
CMake/SCons: finish removing MSVC2012 references

5 years agoFixes for font underline
Campbell Barton [Thu, 15 May 2014 06:00:53 +0000 (16:00 +1000)]
Fixes for font underline

- underline faces had flipped winding by default.
- BKE_vfont_to_curve_ex disallowed 0 underline height (annoying when sliding value)
- disallow negative underline height since it flips underline direction (just change position + height)

5 years agoWindows: Remove support for MSVC 2012 (VC11).
Thomas Dinges [Thu, 15 May 2014 05:49:40 +0000 (07:49 +0200)]
Windows: Remove support for MSVC 2012 (VC11).

The officially supported compiled is now MSVC 2013, and MSVC 2008 will be faded out slowly over the coming weeks.

5 years agoFix T40180: Space between letters adds space after last letter
Campbell Barton [Thu, 15 May 2014 05:43:59 +0000 (15:43 +1000)]
Fix T40180: Space between letters adds space after last letter

5 years agoDisable auto-perspective by default, see T40153
Campbell Barton [Thu, 15 May 2014 04:25:04 +0000 (14:25 +1000)]
Disable auto-perspective by default, see T40153

5 years agoFix T40154: UI Multi-drag sets value beyond max
Campbell Barton [Thu, 15 May 2014 03:09:02 +0000 (13:09 +1000)]
Fix T40154: UI Multi-drag sets value beyond max

5 years agoFix T40199: bge.logic.LibFree() could cause crashes by leaving dangling pointers...
Mitchell Stokes [Thu, 15 May 2014 02:11:08 +0000 (19:11 -0700)]
Fix T40199: bge.logic.LibFree() could cause crashes by leaving dangling pointers in the rasterizer.

5 years agoFix T40182: Crash when using KX_GameObject.rayCast/rayCastTo().
Mitchell Stokes [Wed, 14 May 2014 05:26:03 +0000 (22:26 -0700)]
Fix T40182: Crash when using KX_GameObject.rayCast/rayCastTo().

Missed another parent->release().

5 years agoFix T40191: Misleading TypeError message when registering CollectionProperty wtihout...
Bastien Montagne [Wed, 14 May 2014 15:49:18 +0000 (17:49 +0200)]
Fix T40191: Misleading TypeError message when registering CollectionProperty wtihout kwarg "type".

Turned up to be a cleanup of doc in that whole module...

5 years agoDirty fix for memory corruption in the rigid body API.
Lukas Tönne [Wed, 14 May 2014 09:42:45 +0000 (11:42 +0200)]
Dirty fix for memory corruption in the rigid body API.

Problem happens when removing a rigid body reference in a constraint,
and then jumping to the start frame right away. This will cause a full
rebuild of the rigid body world. However, the btRigidBodys are removed
before the constraints, and this leaves dangling pointers in the
btTypedConstraints, which causes corruption when deleting those
constraints later.

Fix for now is to explicitly delete constraints in advance when
rebuilding, while they still have valid btRigidBody pointers.

Ultimately the whole memory management and ownership of Bullet data
needs redesign. This is already happening in the particles_refactor
branch and could be ported to master separately:
https://developer.blender.org/diffusion/B/browse/particles_refactor/source/blender/blenkernel/intern/rigidbody.c

5 years agoCode cleanup: doxy comments
Campbell Barton [Wed, 14 May 2014 05:00:47 +0000 (15:00 +1000)]
Code cleanup: doxy comments

5 years agoFCurve: move add modifiers logic from menu into dynamic enum
Campbell Barton [Wed, 14 May 2014 04:41:43 +0000 (14:41 +1000)]
FCurve: move add modifiers logic from menu into dynamic enum

5 years agoFCurve: use submenus rather then popups from menus
Campbell Barton [Wed, 14 May 2014 04:01:36 +0000 (14:01 +1000)]
FCurve: use submenus rather then popups from menus

5 years agoFix FCurve mirror ignoring aligned/free handles
Campbell Barton [Wed, 14 May 2014 03:53:47 +0000 (13:53 +1000)]
Fix FCurve mirror ignoring aligned/free handles

5 years agoFCurve: stop generic rna update from changing curve handle type
Campbell Barton [Wed, 14 May 2014 03:31:34 +0000 (13:31 +1000)]
FCurve: stop generic rna update from changing curve handle type

5 years agoFix for FCurve keyframe editing left handle from button failing if not selected
Campbell Barton [Wed, 14 May 2014 03:26:36 +0000 (13:26 +1000)]
Fix for FCurve keyframe editing left handle from button failing if not selected

5 years agoFCurve: handle calculation was measuring new handle lengths and not using for new...
Campbell Barton [Wed, 14 May 2014 03:10:45 +0000 (13:10 +1000)]
FCurve: handle calculation was measuring new handle lengths and not using for new ratio

5 years agoFix T40187: Can't set single keyframe handle as Vector
Campbell Barton [Wed, 14 May 2014 01:59:51 +0000 (11:59 +1000)]
Fix T40187: Can't set single keyframe handle as Vector

ANIM_editkeyframes_refresh was testing handle selection as if those handles were transformed.

This is already handled by areas which need it,
so simply replace testhandles_fcurve -> calchandles_fcurve.

This was causing other bugs such as inserting a keyframe changing handles of unrelated fcurves.

5 years agoFix for curve widget hue gradient drawing incorrectly when zooming
Campbell Barton [Tue, 13 May 2014 23:34:03 +0000 (09:34 +1000)]
Fix for curve widget hue gradient drawing incorrectly when zooming

5 years agoFix T40172: LibFree() crashes with shared materials (e.g., from multiple LibNew(...
Mitchell Stokes [Tue, 13 May 2014 22:50:28 +0000 (15:50 -0700)]
Fix T40172: LibFree() crashes with shared materials (e.g., from multiple LibNew() calls)

5 years agoBGE: Fixing some NavMesh memory leaks.
Mitchell Stokes [Tue, 13 May 2014 20:45:49 +0000 (13:45 -0700)]
BGE: Fixing some NavMesh memory leaks.

5 years agoFix T37796, Mesh lost after exiting sculpt mode and undoing.
Antony Riakiotakis [Tue, 13 May 2014 22:09:09 +0000 (01:09 +0300)]
Fix T37796, Mesh lost after exiting sculpt mode and undoing.

Issue here is that upon entering sculpt mode, the mesh (and the object
mode) is stored in global undo. Now made the code similar to edit mode,
but since we don't really have any operator to push, this is just
ignored for now.

I have tried just disabling the sculpt toggle operator undo flag but
this didn't work due to the nature recursive of the operator calls

5 years agoCode cleanup: indentation
Campbell Barton [Tue, 13 May 2014 20:37:56 +0000 (06:37 +1000)]
Code cleanup: indentation

5 years agoFix T39196, Dynamic Topology Undo Applied to Wrong Mesh
Antony Riakiotakis [Tue, 13 May 2014 17:59:54 +0000 (20:59 +0300)]
Fix T39196, Dynamic Topology Undo Applied to Wrong Mesh

Undoing nodes that do not belong to the current object will cause the
saved bmesh log entry to be reverted instead. This entry can belong to
another object though.
This is easy to fix by enforcing name matching (this was borrowed by
edit mode but can definitely be improved) between current object name
and undo node name and deleting older entries.

However there are complications. Deleting dyntopo entries in this way
can leave a brush stroke as first dyntopo log entry. This can present
issues if we attempt to delete that entry since it's deleted mesh
elements may now have had their ids (which would still be valid at the
time) cleaned up. This can result in crashing if we attempt to resculpt
on the mesh. To fix this I have disabled releasing the deleted entries.

This entanglement between bm_log and undo is quite volatile but I hope
the system works better now.

Also minor cleanup, fix unneeded check warning

5 years agoFix compilation error with debug SCons
Sergey Sharybin [Tue, 13 May 2014 17:50:55 +0000 (19:50 +0200)]
Fix compilation error with debug SCons

For some reason SCons defines _DEBUG, not DEBUG as mathutils was
expecting it to be.

Made it so mathutils checks for NDEBUG which mimics BLI_assert
define.

5 years agoFix T40151: Problem in normal with subdivision surface + Boolean modifier
Sergey Sharybin [Tue, 13 May 2014 17:41:33 +0000 (19:41 +0200)]
Fix T40151: Problem in normal with subdivision surface + Boolean modifier

Own regression since e08db08. CustomData_copy_data() would fail in cases
when mvert/medge/mloop/mpoly arrays were lazy allocated since that change.

Now made it so this layers are copying from own copy of the arrays.

Not sure if this still misses some CD to be copied, from quick glance
seems no, but some further testing wouldn't hurt at all.

5 years agostyle cleanup, keep preprocessor identation
Antony Riakiotakis [Tue, 13 May 2014 17:11:27 +0000 (20:11 +0300)]
style cleanup, keep preprocessor identation

5 years agoAdd alloca include in compiler compatibility. Helps with MinGW32
Antony Riakiotakis [Tue, 13 May 2014 15:30:16 +0000 (18:30 +0300)]
Add alloca include in compiler compatibility. Helps with MinGW32
compilation.

5 years agoFix T40176: Curve Functions broken in several addons
Sergey Sharybin [Tue, 13 May 2014 14:39:51 +0000 (16:39 +0200)]
Fix T40176: Curve Functions broken in several addons

Regression since 94e5e2f.

Handbook example about what happens when you use copy-paste
and don't test code after you did a cleanup.

5 years agoFolowup for old fix for material animation
Sergey Sharybin [Tue, 13 May 2014 13:19:49 +0000 (15:19 +0200)]
Folowup for old fix for material animation

Need to update node trees, so cycles materials are also updating
when tweaking settings from dopesheet/graph editor.

5 years agoFix T40158: Playback with 100% proxies is very slow
Sergey Sharybin [Tue, 13 May 2014 12:07:26 +0000 (14:07 +0200)]
Fix T40158: Playback with 100% proxies is very slow

Context was creating with the wrong resolution.

5 years agoMore UI messages fixes and tweaks.
Bastien Montagne [Tue, 13 May 2014 13:07:24 +0000 (15:07 +0200)]
More UI messages fixes and tweaks.

5 years agoCorrect last commit, check not to split along edges already used
Campbell Barton [Tue, 13 May 2014 08:35:14 +0000 (18:35 +1000)]
Correct last commit, check not to split along edges already used

5 years agoFix T40162: Vert connect creates extra face cutting across concave NGon.
Campbell Barton [Tue, 13 May 2014 07:50:11 +0000 (17:50 +1000)]
Fix T40162: Vert connect creates extra face cutting across concave NGon.

We need to support cutting degenerate ngons, see: T39418
This commit disallows cuts across faces where the same vertices can create better cuts on different faces.

5 years agoCode cleanup: rename BM_face_legal_splits -> BM_face_splits_check_legal
Campbell Barton [Tue, 13 May 2014 07:46:27 +0000 (17:46 +1000)]
Code cleanup: rename BM_face_legal_splits -> BM_face_splits_check_legal

5 years agoFreestyle: Added .new() and .remove() to the collection type of Python style modules.
Tamito Kajiyama [Tue, 13 May 2014 02:50:54 +0000 (11:50 +0900)]
Freestyle: Added .new() and .remove() to the collection type of Python style modules.

5 years agoFreestyle: Fix for own mistakes in defining RNA aliases.
Tamito Kajiyama [Tue, 13 May 2014 01:52:52 +0000 (10:52 +0900)]
Freestyle: Fix for own mistakes in defining RNA aliases.

5 years agoFreestyle: minor UI text fix.
Tamito Kajiyama [Tue, 13 May 2014 01:29:28 +0000 (10:29 +0900)]
Freestyle: minor UI text fix.

5 years agoFreestyle: naming fixes.
Tamito Kajiyama [Tue, 13 May 2014 01:28:47 +0000 (10:28 +0900)]
Freestyle: naming fixes.

FreestyleSettings and FreestyleModuleSettings are now defined as RNA aliases of
FreestyleConfig and FreestyleModuleConfig, respectively.

5 years agoFreestyle: code clean-up.
Tamito Kajiyama [Tue, 13 May 2014 00:54:30 +0000 (09:54 +0900)]
Freestyle: code clean-up.

5 years agoFreestyle: Added .new() and .remove() methods to collection types of line style modif...
Tamito Kajiyama [Tue, 13 May 2014 00:15:12 +0000 (09:15 +0900)]
Freestyle: Added .new() and .remove() methods to collection types of line style modifiers.

5 years agoShow the "Maximum Draw Type" for empties and cameras in case they work
Lukas Tönne [Tue, 13 May 2014 06:52:51 +0000 (08:52 +0200)]
Show the "Maximum Draw Type" for empties and cameras in case they work
as duplicators.

This property was always hidden in the UI for empties and cameras. It
doesn't make sense for the objects themselves (they are wires-only), but
also gets inherited by duplis. Now show it greyed out if not used, but
make it available for duplicators.

5 years agoBMesh: add check to BM_vert_pair_share_face to allow adjacent loops
Campbell Barton [Tue, 13 May 2014 06:19:07 +0000 (16:19 +1000)]
BMesh: add check to BM_vert_pair_share_face to allow adjacent loops

Add BM_vert_pair_share_face_by_angle to avoid selecting concave splits.

5 years agoFix T38379: Mesh vertices only update when in cone of last created spotlight
Mitchell Stokes [Tue, 13 May 2014 06:13:27 +0000 (23:13 -0700)]
Fix T38379: Mesh vertices only update when in cone of last created spotlight

The shadow render passes could set a mesh's modified status to false
even if they were not rendered. This means their display lists do not
get updated. For now, just skip setting all buckets' modified to false
during shadow render passes.

5 years agoFix T40111: replaceMesh() crashes BGE when used on a parented object
Mitchell Stokes [Tue, 13 May 2014 05:52:14 +0000 (22:52 -0700)]
Fix T40111: replaceMesh() crashes BGE when used on a parented object

The replace mesh code was still calling release() on the parent object when it
no longer needed to (due to earlier commits).

5 years agoTweak for node socket swapping: don't un-hide sockets automatically.
Lukas Tönne [Tue, 13 May 2014 05:41:48 +0000 (07:41 +0200)]
Tweak for node socket swapping: don't un-hide sockets automatically.

This was suggested by @zanqdo on IRC. Hiding sockets is a user choice
(not to be confused with "unavailable" disabled sockets). Hidden sockets
suddenly popping up when linking is confusing and intransparent, better
just ignore them for the swapping.

5 years agoBMesh: make BM_face_calc_normal_subset apart of the bmesh api
Campbell Barton [Tue, 13 May 2014 04:56:17 +0000 (14:56 +1000)]
BMesh: make BM_face_calc_normal_subset apart of the bmesh api

also make face normal calculation functions return normal length

5 years agoFreestyle: Fix for comments in line with the previous commit.
Tamito Kajiyama [Mon, 12 May 2014 04:04:28 +0000 (13:04 +0900)]
Freestyle: Fix for comments in line with the previous commit.

5 years agoFreestyle: Removed redundant flipping of UV coordinates.
Tamito Kajiyama [Mon, 12 May 2014 04:03:02 +0000 (13:03 +0900)]
Freestyle: Removed redundant flipping of UV coordinates.

Patch contribution by Paolo Acampora.  Thank you!

5 years agoUsual typo and style fixes in UI messages...
Bastien Montagne [Mon, 12 May 2014 21:08:31 +0000 (23:08 +0200)]
Usual typo and style fixes in UI messages...

5 years agoFix T40115: Smoke simulator memory leak with high poly mesh emitter.
Bastien Montagne [Mon, 12 May 2014 19:30:27 +0000 (21:30 +0200)]
Fix T40115: Smoke simulator memory leak with high poly mesh emitter.

Own error, all kudos go to scorpion81 (Martin Felke) for the nvestigation & patch!

5 years agoFix T40149: cycles motion blur render problem with multiple render layers.
Brecht Van Lommel [Mon, 12 May 2014 16:36:01 +0000 (18:36 +0200)]
Fix T40149: cycles motion blur render problem with multiple render layers.

5 years agoFix T40014: Broken shading with mirror modifier and auto smooth normals while hiding...
Bastien Montagne [Mon, 12 May 2014 13:50:59 +0000 (15:50 +0200)]
Fix T40014: Broken shading with mirror modifier and auto smooth normals while hiding verts.

Stupid mistake that showed only when there was some hidden faces
(lnors should always be increased... even when the face is not drawned!).

5 years agoFix for typeinfo NULL pointer crash when initializing unknown node types.
Lukas Tönne [Mon, 12 May 2014 13:33:20 +0000 (15:33 +0200)]
Fix for typeinfo NULL pointer crash when initializing unknown node types.

Noticed by @bdancer on IRC. Happens e.g. when loading a file with
pynodes which haven't been registered yet.

5 years agoCleanup: Remove unused hardcoded variables in the integrator.
Thomas Dinges [Mon, 12 May 2014 08:45:11 +0000 (10:45 +0200)]
Cleanup: Remove unused hardcoded variables in the integrator.

Differential Revision: https://developer.blender.org/D525

5 years agoCleanup: Some else if for attribute code.
Thomas Dinges [Mon, 12 May 2014 08:20:20 +0000 (10:20 +0200)]
Cleanup: Some else if for attribute code.

5 years agoFix T40142: Objects restricted in render/view don't produce duplis in
Lukas Tönne [Mon, 12 May 2014 06:55:47 +0000 (08:55 +0200)]
Fix T40142: Objects restricted in render/view don't produce duplis in
with correct transform for Blender Internal.

According to previous code the obmat must be modified even if the
duplicated object itself is filtered later. TBH i have no idea how/why
this works, but nobody else does either ... All obmats are restored
after BI messes with them during render, so should be fine ...

5 years agoA bit more helpful doc strings on the curve render resolution properties.
Lukas Tönne [Mon, 12 May 2014 06:07:33 +0000 (08:07 +0200)]
A bit more helpful doc strings on the curve render resolution properties.

5 years agoFix for crash when doing "make local object+data" on an empty.
Lukas Tönne [Mon, 12 May 2014 05:49:31 +0000 (07:49 +0200)]
Fix for crash when doing "make local object+data" on an empty.

This commit added object data loop, without checking ob->data for NULL:
rB6e5e3b73f37f952420d87a3d8acd07a7f68dd5a3

5 years agoFix crash removing objects rigid body constraints
Campbell Barton [Mon, 12 May 2014 04:55:54 +0000 (14:55 +1000)]
Fix crash removing objects rigid body constraints

5 years agoFix/Workaround T40102: RMB on vertex & GKey, acts as double-G
Campbell Barton [Mon, 12 May 2014 02:54:29 +0000 (12:54 +1000)]
Fix/Workaround T40102: RMB on vertex & GKey, acts as double-G