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
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
40a2c1a292
more vertex weight edits,
...
* replace inline loops with api calls.
* change constraints so verts with 0.0 weight are ignored like they are everywhere else.
2011-12-14 22:54:38 +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
65f3b93f14
svn merge ^/trunk/blender -r42521:42550
2011-12-10 05:38:00 +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
Campbell Barton
2b82498544
minor refactor of vertex group functions,
...
- defvert_remove_index's index wasnt used anywhere, rename to defvert_remove_group
- defvert_add_to_group was local in MOD_weightvg_util.c, moved to deform.c and renamed to defvert_add_index_notest
real fix coming next...
2011-12-08 03:47:45 +00:00
Campbell Barton
df5af02dec
svn merge ^/trunk/blender -r42290:42292
2011-11-30 10:07:04 +00:00
Campbell Barton
9e5b28cd42
svn merge ^/trunk/blender -r42261:42290
2011-11-30 09:31:11 +00:00
Campbell Barton
064d46eef0
use consistent naming for deform.c, also moved defvert_remove_index into deform.c, was local in modifier code.
2011-11-30 07:39:54 +00:00
Campbell Barton
b202bf0564
fix [ #29450 ] Mirror Vertex Groups issue
2011-11-30 07:11:29 +00:00
Campbell Barton
9aa901cccc
svn merge -r41422:41431 ^/trunk/blender
2011-11-01 09:05:38 +00:00
Campbell Barton
2ad80bf3bb
vertex group mirror
...
- now works in vertex select + weight paint mode.
- added option not to mirror all vertex groups.
2011-11-01 08:11:55 +00:00
Campbell Barton
e08c4a00d2
svn merge -r41371:41420 ^/trunk/blender
2011-11-01 02:01:09 +00:00
Campbell Barton
797d2bbd88
use_verify option to defvert_sync_mapped and defvert_sync was flipped, also minor edits to defvert_verify_index() - no functional change.
2011-10-31 06:13:20 +00:00
Campbell Barton
ff837cbe9b
svn merge -r41310:41329 ^/trunk/blender
2011-10-28 05:17:09 +00:00
Andrew Wiggin
626f737186
..and now fix linux build since my windows build fix had a lowercase typo
2011-10-27 12:37:14 +00:00
Andrew Wiggin
76d2e76aec
Fix windows build (__func__ macro needs definition from BLI_utildefines.h on MSVC)
2011-10-27 12:28:39 +00:00
Campbell Barton
75e570b2b7
svn merge -r41287:41310 ^/trunk/blender note, mirror modifier had slow, per vertex name flipping, replaced with flip_map from trunk
2011-10-27 09:42:03 +00:00
Campbell Barton
99075b35ed
fix [ #29044 ] applying mirror modifier causes crash; something with vertex groups?
2011-10-27 07:54:32 +00:00
Campbell Barton
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +00:00
Campbell Barton
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
Campbell Barton
4e118bb22f
svn merge ^/trunk/blender -r40890:40950
2011-10-14 01:35:20 +00:00
Campbell Barton
bc40f11093
header cleanup (no functional changes)
2011-10-10 09:38:02 +00:00
Campbell Barton
f122a74b1e
svn merge -r37078:37335 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2011-06-09 15:20:29 +00:00
Campbell Barton
e55833a094
fix [ #27572 ] Mirror Shapekey and Mirror vertex Group not working for Lattice.
2011-06-06 06:40:09 +00:00
Joseph Eagar
6ef77cf95a
=bmesh= merge from trunk at r36529
2011-05-08 23:43:18 +00:00
Campbell Barton
f9f771cd01
converted more mixed tab/space indentations to tabs. only whitespace changes.
2011-04-21 15:53:30 +00:00
Campbell Barton
210ee1ade4
whitespace only, no functional change mixed tabs/spaces --> tabs.
2011-04-21 13:11:51 +00:00
Joseph Eagar
c98148a963
=bmesh= merge from trunk at r36153
2011-04-15 01:19:13 +00:00
Nathan Letwory
0ff06e21cd
doxygen: blender/blenkernel tagged.
2011-02-27 20:40:57 +00:00
Joseph Eagar
f01261d040
merge with/from trunk at r35190
2011-02-27 06:19:40 +00:00
Campbell Barton
c68a59175e
corrected error from commit r34810.
2011-02-13 13:07:12 +00:00
Campbell Barton
0955c664aa
fix for warnings from Sparse static source code checker, mostly BKE/BLI and python functions.
...
- use NULL rather then 0 where possible (makes code & function calls more readable IMHO).
- set static variables and functions (exposed some unused vars/funcs).
- use func(void) rather then func() for definitions.
2011-02-13 10:52:18 +00:00
Joshua Leung
90f543ba3a
Reverting part of 34810
...
The changes here were breaking old rigs, for example the right eyeball
in the Sintel rig (which uses the Mirror Modifier and its vertex-group
mirroring functionality)
2011-02-13 07:39:43 +00:00
Campbell Barton
867fc4b463
enforce string limits (reported by pedantic checking tools & some developers).
...
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf().
also fix possible crash if CWD isnt available.
2011-02-13 03:21:27 +00:00
Campbell Barton
55f68c3657
fix for more warnings.
...
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array.
- use BLI_snprintf rather then sprintf where the size of the string is known.
- particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).
2011-02-12 16:54:24 +00:00
Campbell Barton
c68e3913ed
fix [ #25429 ] Armature modifier and inverted vertex group
...
- the invert flag was only being used for multi-modifier, but there is no reason not to use this in normal cases as well.
- Armature modifier RNA name 'vertex_group' was incorrectly named 'vertex_group_multi_modifier' (own fault), confusion was caused by 'invert_vertex_group_multi_modifier' which was correct.
2010-12-31 11:51:00 +00:00
Campbell Barton
b45c3363fd
fix for some pedantic warnings.
2010-12-03 01:52:28 +00:00
Campbell Barton
20b16e4074
de-duplicate unique naming logic, was used in 7 different places, convert into a function call.
2010-11-07 08:49:07 +00:00
Campbell Barton
daa4feaaea
bugfix [ #24477 ] Can easily create bones with duplicate names
...
- fixed this error 7 different functions (deform groups, uv layers & similar).
- support for numbers over 999.
- renamed splitIDname() to BLI_split_name_num(), moved to BLI_path_utils
2010-11-01 07:19:41 +00:00
Joseph Eagar
bb7339a7ae
merge with trunk at r31523
2010-09-04 05:31:25 +00:00
Campbell Barton
0bab23633a
remove inline loops in a few places
...
replace with defgroup_find_name() and BLI_findstring()
2010-08-22 14:15:28 +00:00
Campbell Barton
1280b6f902
- add back prefix for ID lists (LF) for linked and fake user for search fields.
...
- remove debug print for left/right name flipping & commented test from the sequencer.
2010-07-31 01:06:08 +00:00
Campbell Barton
449f8ce4fe
bugfix [ #22859 ] Multi-user images cant be made into single user in texure panel.
...
turns out this isnt exactly a bug since support was never written for this but may as well support it.
now rna/py can do image.copy() too.
2010-07-30 06:09:23 +00:00
Joseph Eagar
c11c196efa
part 1 of merge from trunk at r30358; it compiles, but doesn't link quite yet :)
2010-07-19 04:44:37 +00:00