1e3f98c000
remove unneeded inline lookups and fix error with wpaint_stroke_test_start returning OPERATOR_PASS_THROUGH rather then a boolean.
2012-12-28 01:36:00 +00:00
e09a1bc7cf
minor changes to select similar,
...
- replace ngon_fake_area() with generic call to BM_face_calc_area().
- add defvert_find_shared() utility function.
2012-10-30 11:40:36 +00:00
f70d2c65d8
rename api functions...
...
- minf, maxf, mini, maxi --> min_ff, max_ff, min_ii, max_ii
2012-10-23 13:28:22 +00:00
23baf8c9c3
code cleanup: check defgroup_name_index() return value != -1, rather then checking >= 0.
...
also remove unused bmesh decimator code.
2012-10-22 17:19:05 +00:00
99fcec3334
fix [ #29431 ] "Normalize All" from Weight Tools don't work correctly
2012-09-05 04:16:09 +00:00
a512cac545
code cleanup: move get_selected_defgroups into object_deform.c and make it behave like similar functions, also when drawing vertex weight colors, only call this function when multi-paint is enabled.
2012-09-05 03:45:32 +00:00
57b488574a
style cleanup: comma placement
2012-05-23 22:45:39 +00:00
9dd981a440
style cleanup: block comments
2012-05-16 23:37:23 +00:00
cffaa42d3a
style cleanup: blenkernel
2012-05-12 19:18:02 +00:00
60c9addf79
- improve select grouped prefix/suffix from recent patch
...
- added select similar direction (Y axis)
2012-04-30 08:24:44 +00:00
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
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
df29e91a69
code cleanup: header cleanup, remove commented workaround for mingw since its no longer needed.
2012-04-06 04:46:47 +00:00
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
9dd0c4c232
rename define BM_INLINE -> BLI_INLINE to avoid confusion with bmesh defines.
2012-03-20 08:42:26 +00:00
be116242d4
style cleanup
2012-03-20 04:27:14 +00:00
46f157c340
style cleanup
2012-03-20 04:09:43 +00:00
bfcd1afe9c
compile fix: linux BLI_gzopen declare was conflicting.
2012-03-20 03:48:32 +00:00
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
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
ea13ec1699
Spelling Cleanup
2012-03-01 12:20:18 +00:00
47c373c7a9
style cleanup (mostly whitespace)
2012-02-27 10:35:39 +00:00
761122da2f
Code Cleanup: minor changes & sync with bmesh.
2012-02-05 07:40:15 +00:00
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
74a1123059
Quite some compiler warnings...
2011-12-17 16:22:08 +00:00
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
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
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
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
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
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
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
b202bf0564
fix [ #29450 ] Mirror Vertex Groups issue
2011-11-30 07:11:29 +00:00
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
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
626f737186
..and now fix linux build since my windows build fix had a lowercase typo
2011-10-27 12:37:14 +00:00
76d2e76aec
Fix windows build (__func__ macro needs definition from BLI_utildefines.h on MSVC)
2011-10-27 12:28:39 +00:00
99075b35ed
fix [ #29044 ] applying mirror modifier causes crash; something with vertex groups?
2011-10-27 07:54:32 +00:00
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
bc40f11093
header cleanup (no functional changes)
2011-10-10 09:38:02 +00:00
e55833a094
fix [ #27572 ] Mirror Shapekey and Mirror vertex Group not working for Lattice.
2011-06-06 06:40:09 +00:00
f9f771cd01
converted more mixed tab/space indentations to tabs. only whitespace changes.
2011-04-21 15:53:30 +00:00
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
c68a59175e
corrected error from commit r34810.
2011-02-13 13:07:12 +00:00
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
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
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
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