Campbell Barton
60c9addf79
- improve select grouped prefix/suffix from recent patch
...
- added select similar direction (Y axis)
2012-04-30 08:24:44 +00:00
Campbell Barton
daae72e17b
patch [ #30834 ] Quick Hack: Select similar for bones in edit mode
...
from Felix Schlitter (dalai)
made some changes to select length measurement.
2012-04-29 18:23:33 +00:00
Campbell Barton
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
Campbell Barton
df29e91a69
code cleanup: header cleanup, remove commented workaround for mingw since its no longer needed.
2012-04-06 04:46:47 +00:00
Campbell Barton
f87c5b3453
fix [ #30715 ] bmesh: select linked not ignoring hidden verts/edges/faces
...
add optional flag to ignore hidden elements.
also remove loop mask flag - since it wasnt used and vert/edge/face is enough.
2012-03-29 13:09:07 +00:00
Campbell Barton
9dd0c4c232
rename define BM_INLINE -> BLI_INLINE to avoid confusion with bmesh defines.
2012-03-20 08:42:26 +00:00
Campbell Barton
be116242d4
style cleanup
2012-03-20 04:27:14 +00:00
Campbell Barton
46f157c340
style cleanup
2012-03-20 04:09:43 +00:00
Campbell Barton
bfcd1afe9c
compile fix: linux BLI_gzopen declare was conflicting.
2012-03-20 03:48:32 +00:00
Brecht Van Lommel
f18dab65ad
Fix #30531 : mirror modifier with vertex groups did not add both the left and
...
right groups to merged vertices, only one. This made the result asymmetric,
now merged vertices will be part of both groups with half weight.
2012-03-19 21:09:16 +00:00
Campbell Barton
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
Campbell Barton
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
Campbell Barton
ea13ec1699
Spelling Cleanup
2012-03-01 12:20:18 +00:00
Campbell Barton
47c373c7a9
style cleanup (mostly whitespace)
2012-02-27 10:35:39 +00:00
Campbell Barton
761122da2f
Code Cleanup: minor changes & sync with bmesh.
2012-02-05 07:40:15 +00:00
Campbell Barton
e10fd04db0
use BLI_strncpy and BLI_snprintf when the size of the string is known.
...
fix for sequencer unique naming which was missed with string length update.
2012-01-11 12:33:51 +00:00
Bastien Montagne
74a1123059
Quite some compiler warnings...
2011-12-17 16:22:08 +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
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
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
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
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
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
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
99075b35ed
fix [ #29044 ] applying mirror modifier causes crash; something with vertex groups?
2011-10-27 07:54:32 +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
bc40f11093
header cleanup (no functional changes)
2011-10-10 09:38:02 +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
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
Nathan Letwory
0ff06e21cd
doxygen: blender/blenkernel tagged.
2011-02-27 20:40:57 +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
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
Tom Musgrove
28e8c04795
patch by by xat "Partial fix for bug #22142 "
2010-04-23 20:05:16 +00:00
Campbell Barton
4fde9823fd
possible fix for [ #22057 ] Autoname L/R in bones names center bones as .R
...
Bone would get a '.' added even when there was no extension.
(center limit would still be useful)
- name flipping function used sizeof() incorrectly.
- ED_lorem should be extern.
2010-04-18 14:47:45 +00:00