Campbell Barton
57e6ac47a0
use TRUE/FALSE rather then 1/0, no functional changes.
2011-12-21 03:33:32 +00:00
Campbell Barton
1fef05084e
svn merge ^/trunk/blender -r42761:42776
2011-12-20 22:08:24 +00:00
Bastien Montagne
738fdc7b6f
New modifier type: eModifierTypeType_NonGeometrical, for modifiers affecting CustomData layers only (e.g. UVProject and WeightVG ones).
...
Also, allow applying to obdata those modifiers, even with shapekeys, but do not allow applying them *as* shapekey (as shapekeys do not have CD layers).
Fix [#29636 ] Vertex Weight Mix modifier "apply" button don't work.
Note: applying whit shape keys currently always uses base shape, not current one (for apply to obdata as well as apply to shapekey), but this is another topic...
2011-12-20 14:15:59 +00:00
Campbell Barton
2457d4f5ab
svn merge ^/trunk/blender -r42680:42722
2011-12-19 10:40:48 +00:00
Bastien Montagne
74a1123059
Quite some compiler warnings...
2011-12-17 16:22:08 +00:00
Campbell Barton
5c6ee6b523
svn merge ^/trunk/blender -r42670:42680
2011-12-17 02:41:53 +00:00
Brecht Van Lommel
994f4bb3f7
Code cleanup: fix a few warnings (>= 0 and == -1 tests on unsigned types).
2011-12-17 01:13:02 +00:00
Brecht Van Lommel
4d6c34462c
Fix #29640 : make duplicates release keep hierarchy and parent properties not
...
working for multiple objects.
ID.newid only worked for one object, now it uses a hash instead.
2011-12-16 23:56:18 +00:00
Campbell Barton
db6cb30941
svn merge ^/trunk/blender -r42669:42670
2011-12-16 23:50:55 +00:00
Campbell Barton
e5b1f9c28d
svn merge ^/trunk/blender -r42660:42669
2011-12-16 23:26:29 +00:00
Brecht Van Lommel
3311164b24
Math lib: matrix multiplication order fix for two functions that were
...
inconsistent with similar functions & math notation:
mul_m4_m4m4(R, B, A) => mult_m4_m4m4(R, A, B)
mul_m3_m3m4(R, B, A) => mult_m3_m3m4(R, A, B)
For branch maintainers, it should be relatively simple to fix things manually,
it's also possible run this script after merging to do automatic replacement:
http://www.pasteall.org/27459/python
2011-12-16 19:53:12 +00:00
Campbell Barton
ce8f64d9f9
de-duplicate parent loop checking function
2011-12-16 10:39:43 +00:00
Campbell Barton
862dc635ed
svn merge ^/trunk/blender -r42617:42655
2011-12-15 23:59:02 +00:00
Campbell Barton
27a56719a8
minor vertex group edits
...
* when freeing a deform weight, use one less memcpy call.
* vgroup_delete_object_mode(), was looping on the deform verts twice when it didn't need to.
2011-12-14 23:53:46 +00:00
Campbell Barton
3d5330f789
vertex group changes,
...
use more api functions more (some vertex group editing functions were copied about), also make some functions int oapi calls.
- remove defgroup_find_index(), use BLI_findlink instead since they both work the same way.
- move static function getNearestPointOnPlane() to BLI_math api function closest_to_plane_v3()
- ED_vgroup_give_parray() added option to return an array where unselected verts are NULL (simplifies code & works for lattice when it didn't before).
- more consistant error checking of ob->actdef.
2011-12-14 21:08:08 +00:00
Campbell Barton
8115753fd2
svn merge ^/trunk/blender -r42564:42586
2011-12-12 21:01:39 +00:00
Sergey Sharybin
cd0608aff5
Fix #29600 : Hook actions wrong Tool Shelf adjust
...
Do not register hook_assign and hook_remove operators in the redo panel.
2011-12-12 14:54:28 +00:00
Campbell Barton
65f3b93f14
svn merge ^/trunk/blender -r42521:42550
2011-12-10 05:38:00 +00:00
Sergey Sharybin
3e90bfb07b
Fix for recent rna rename of global to use_global
2011-12-09 15:56:04 +00:00
Campbell Barton
2827f57f62
global is python keyword so cant use as operator argument,
...
also ran operator cheat sheet and made sure no syntax errors.
+ minor pep8 edits.
2011-12-09 10:19:11 +00:00
Campbell Barton
f025b7b511
went over all uses of MDeformWeight.def_nr and made sure the value is clamped when used as an array index.
2011-12-09 08:20:27 +00:00
Campbell Barton
11aba526f2
another possible fix for bug [ #29521 ], all callers of flip_side_name(...), assumed it initialized the string however for 1-2 length names it returned without doing anything.
...
in most cases the caller would then check if the name was different to see if the name was flipped, incorrectly comparing the uninitialized string with the original name.
2011-12-09 07:35:56 +00:00
Campbell Barton
980e68175b
svn merge ^/trunk/blender -r42495:42516
2011-12-08 17:32:37 +00:00
Sergey Sharybin
36e7a22fcc
Disable redo for some vertex group operators to prevent confusing
...
situation when changing properties in redo panel messes up things.
This should help in cases described in #29527 : Vgroup assign, remove and undo
2011-12-08 11:02:29 +00:00
Campbell Barton
b245dfbc06
svn merge ^/trunk/blender -r42466:42495
2011-12-07 18:29:21 +00:00
Campbell Barton
2b49d05338
fix for NULL pointer free and add in some checks, while looking into bug [ #29521 ],
...
add asserts so we know if an invalid active index is ever set.
2011-12-07 09:13:15 +00:00
Campbell Barton
f07df7287e
manual sync with trunk - pulling in changes where the issues are not bmesh spesific
...
- some merges added lines in multiple times
- removed some NULL checks that were only in bmesh
- enable cycles by default (was disabled because it used not to work)
- make formatting match
2011-12-04 23:13:28 +00:00
Campbell Barton
eb233d9332
syncing some minor formatting edits from bmesh branch.
2011-12-04 23:04:43 +00:00
Campbell Barton
3267a619f1
svn merge ^/trunk/blender -r42416:42422
2011-12-04 20:05:50 +00:00
Campbell Barton
bf77a177d4
remove mesh PartialVisibility, it wasnt being version patches or used anywhere, other then save/load/free.
2011-12-04 19:49:35 +00:00
Campbell Barton
22a1ad61f9
svn merge ^/trunk/blender -r42372:42416
2011-12-04 18:39:19 +00:00
Campbell Barton
9c5ad4fb60
remove old renderer struct member, was only used for setting yafray but was still being checked in a few places,
2011-12-04 16:22:53 +00:00
Campbell Barton
3fdc28b736
add a new object member to store the dsize, since with my recent commit broke forward compatibility. now the new values are copied into 'dscale' and existing ones remain.
...
this is annoying since now we have dsize and dscale, will look into a way to deprecate struct members next.
2011-12-04 03:35:54 +00:00
Campbell Barton
d74c564235
svn merge ^/trunk/blender -r42333:42361
2011-12-02 23:02:21 +00:00
Brecht Van Lommel
a097bc6889
Fix #29477 : make proxy gave proxy object the wrong name with OB prefix.
...
Broke in revision 41125 with BLI_snprintf refactoring, checked other
changes in that commit and they seem to be fine, was just this one.
2011-12-02 20:49:31 +00:00
Campbell Barton
25098c741b
svn merge ^/trunk/blender -r42292:42303
2011-12-01 00:34:59 +00:00
Sergey Sharybin
ed65c46332
Forcing multires update when doing multires baking
...
Prevents issues with missed strokes baked into image when baking from sculpt mode.
2011-11-30 11:04:57 +00:00
Campbell Barton
9e5b28cd42
svn merge ^/trunk/blender -r42261:42290
2011-11-30 09:31:11 +00:00
Campbell Barton
c9edbab08a
fix for parenting bug introduced by own commit r42273, adding dummy object didnt initialize delta vectors.
...
also remove redundant NULL initializers, where the value is initialized immediately after.
2011-11-30 08:03:20 +00:00
Campbell Barton
b202bf0564
fix [ #29450 ] Mirror Vertex Groups issue
2011-11-30 07:11:29 +00:00
Campbell Barton
6403858ad9
fix [ #29111 ] Wrong application of delta scale
...
apply delta scale as a multiplier & do-versions on existing files.
- bumps subversion to 2.60.6
2011-11-29 21:13:37 +00:00
Campbell Barton
faa022563d
svn merge ^/trunk/blender -r42245:42261
2011-11-29 18:18:56 +00:00
Sergey Sharybin
587197c13f
Fix for memory leak in multires baker.
2011-11-29 15:45:16 +00:00
Andrew Wiggin
eb46f6bf0d
More DM func renames, this one includes renames of the function pointer members of the DerivedMesh struct
2011-11-29 13:01:51 +00:00
Campbell Barton
5380545c97
svn merge ^/trunk/blender -r42221:42245
2011-11-29 06:58:16 +00:00
Campbell Barton
00afa59004
fix for crash adding empty object
2011-11-29 01:05:26 +00:00
Campbell Barton
aad88b560b
enable multires baking code, this works between different multires levels but currently not baking to level 0, added TODO in code.
2011-11-27 16:50:25 +00:00
Campbell Barton
565e2b4d73
use faster method of getting vert/edge/face indices which uses BLI_mempool_findelem to skip over chunks rather than going over every element
2011-11-27 02:05:46 +00:00
Campbell Barton
4b3976cc5a
svn merge ^/trunk/blender -r42116:42139
2011-11-24 20:01:45 +00:00
Sergey Sharybin
5acde0d24c
Fix #29369 : bpy.data.curves.new(name= "test" , type = 'SURFACE') does not create a surface
...
This issue it totally related on issue with changing object datablock.
For curves it used to guess object type from curve datablock based on
count of control points in V direction.
This quess fails in case when SurfCircle datablock is trying to be reused
by another surface object or as another sample empty surface databouck used
to be treated as curve.
Store type in Curve when creating new Curve datablock which is used in
this object type quessing function.
Note: Previously saved files wouldn't change behavior at all.
2011-11-24 14:30:37 +00:00