Commit Graph

58616 Commits

Author SHA1 Message Date
Sergey Sharybin 9531091eb8 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.
2014-05-13 19:52:50 +02:00
Sergey Sharybin b9967bfb3f 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.
2014-05-13 19:45:08 +02:00
Antonis Ryakiotakis c60d5c6895 style cleanup, keep preprocessor identation 2014-05-13 20:11:27 +03:00
Antonis Ryakiotakis ba350d3020 Add alloca include in compiler compatibility. Helps with MinGW32
compilation.
2014-05-13 18:41:53 +03:00
Sergey Sharybin 4875a665cc 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.
2014-05-13 16:39:51 +02:00
Sergey Sharybin 9ae9c268ca 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.
2014-05-13 16:15:19 +02:00
Sergey Sharybin eed0c4d062 Fix T40158: Playback with 100% proxies is very slow
Context was creating with the wrong resolution.
2014-05-13 16:15:19 +02:00
Bastien Montagne 2149886033 More UI messages fixes and tweaks. 2014-05-13 15:07:24 +02:00
Campbell Barton b12bf2216f Correct last commit, check not to split along edges already used 2014-05-13 18:41:04 +10:00
Campbell Barton dd8a9eee3b 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.
2014-05-13 17:56:26 +10:00
Campbell Barton 46bd759964 Code cleanup: rename BM_face_legal_splits -> BM_face_splits_check_legal 2014-05-13 17:48:25 +10:00
Tamito Kajiyama 19b82be61e Freestyle: Added .new() and .remove() to the collection type of Python style modules. 2014-05-13 16:18:32 +09:00
Tamito Kajiyama c08f025fe1 Freestyle: Fix for own mistakes in defining RNA aliases. 2014-05-13 16:18:31 +09:00
Tamito Kajiyama c0d96e1d1e Freestyle: minor UI text fix. 2014-05-13 16:18:31 +09:00
Tamito Kajiyama db338a6585 Freestyle: naming fixes.
FreestyleSettings and FreestyleModuleSettings are now defined as RNA aliases of
FreestyleConfig and FreestyleModuleConfig, respectively.
2014-05-13 16:18:30 +09:00
Tamito Kajiyama 2c72bb1c19 Freestyle: code clean-up. 2014-05-13 16:18:29 +09:00
Tamito Kajiyama a31962287a Freestyle: Added .new() and .remove() methods to collection types of line style modifiers. 2014-05-13 16:18:28 +09:00
Lukas Tönne 3583366266 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.
2014-05-13 08:55:36 +02:00
Campbell Barton bdf477d19a 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.
2014-05-13 16:49:57 +10:00
Mitchell Stokes 2055e968df 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.
2014-05-12 23:13:27 -07:00
Mitchell Stokes 43f3e79cee 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).
2014-05-12 22:53:31 -07:00
Lukas Tönne aebcb3bab9 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.
2014-05-13 07:41:48 +02:00
Campbell Barton f14df29777 BMesh: make BM_face_calc_normal_subset apart of the bmesh api
also make face normal calculation functions return normal length
2014-05-13 14:58:05 +10:00
Tamito Kajiyama 51fa66bc64 Freestyle: Fix for comments in line with the previous commit. 2014-05-13 09:16:28 +09:00
Tamito Kajiyama ae00a2b3fd Freestyle: Removed redundant flipping of UV coordinates.
Patch contribution by Paolo Acampora.  Thank you!
2014-05-13 09:16:28 +09:00
Bastien Montagne 1c2e6de969 Usual typo and style fixes in UI messages... 2014-05-12 23:08:31 +02:00
Bastien Montagne 355709432e Fix T40115: Smoke simulator memory leak with high poly mesh emitter.
Own error, all kudos go to scorpion81 (Martin Felke) for the nvestigation & patch!
2014-05-12 21:30:27 +02:00
Brecht Van Lommel 1b1b71f697 Fix T40149: cycles motion blur render problem with multiple render layers. 2014-05-12 18:37:49 +02:00
Bastien Montagne 70303dfefe 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!).
2014-05-12 15:52:19 +02:00
Lukas Tönne a7918ea40e 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.
2014-05-12 15:35:49 +02:00
Thomas Dinges 146a1c77ea Cleanup: Remove unused hardcoded variables in the integrator.
Differential Revision: https://developer.blender.org/D525
2014-05-12 10:45:11 +02:00
Thomas Dinges f3dd6b8df2 Cleanup: Some else if for attribute code. 2014-05-12 10:21:13 +02:00
Lukas Tönne 7fb96ff00d 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 ...
2014-05-12 08:55:47 +02:00
Lukas Tönne 204ba76ee0 A bit more helpful doc strings on the curve render resolution properties. 2014-05-12 08:07:33 +02:00
Lukas Tönne 3d7d930e31 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
2014-05-12 07:49:31 +02:00
Campbell Barton e2672a433b Fix crash removing objects rigid body constraints 2014-05-12 14:55:54 +10:00
Campbell Barton d1526da787 Fix/Workaround T40102: RMB on vertex & GKey, acts as double-G 2014-05-12 12:58:26 +10:00
Campbell Barton 47e905725e Fix for numpad orbit ignoring auto-perspective 2014-05-12 11:27:59 +10:00
Campbell Barton 3210dfe769 Fix for rotate-around-selection in text-edit mode
This wasn't supported and would print an error message.
2014-05-12 11:19:55 +10:00
Campbell Barton 5db81a0695 Fix T40144: Font rendering problems 2014-05-12 09:08:02 +10:00
Campbell Barton b78bb98cc9 VFont: de-duplicate checks for next/prev handles 2014-05-12 09:02:14 +10:00
Campbell Barton 4dcdb4b15e VFont: avoid allocating an array for storing total contours. 2014-05-12 08:47:49 +10:00
Brecht Van Lommel df74230c5e Fix cycles baking code build errors with OpenCL on some platforms. 2014-05-11 16:36:51 +02:00
Brecht Van Lommel 0d5ecc5c33 Fix T40117: cycles sobol RNG issue when disabling __CAMERA_MOTION__.
This doesn't affect any actual release code since camera motion blur is enabled.
2014-05-11 16:36:51 +02:00
Shinsuke Irie c721f9a9f4 Remove unneeded comment. 2014-05-11 22:26:20 +09:00
Campbell Barton f3ae9ce48a Quiet warnings 2014-05-11 20:21:00 +10:00
Tamito Kajiyama 3844e30e45 Freestyle: Added handling of a user-specified name for creating a new line set. 2014-05-11 17:57:43 +09:00
Tamito Kajiyama d930c63f03 Freestyle: Fix for the active line set index possibly invalidated after deleting a line set. 2014-05-11 17:57:41 +09:00
Tamito Kajiyama bbd611362c Freestyle: Added .new() and .remove() methods to the Linesets collection type. 2014-05-11 17:57:40 +09:00
Tamito Kajiyama 39c078202d Added BKE_freestyle_lineset_delete() by generalizing FRS_delete_active_lineset(). 2014-05-11 17:57:40 +09:00