8b6e777736
Fix out-of-bounds read BKE_deform_flip_side_name
2015-03-19 18:13:47 +11:00
d580c90469
CustomData: const correctness for interp()
2015-02-23 13:54:33 +11:00
fca515838e
Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).
...
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)'
and 'strcmp(foo, bar) == 0' in several places...
2015-01-26 16:59:24 +01:00
a3bfaa481f
Cleanup: rename BKE's 'object_data_transfer' to 'data_transfer' to avoid same file names with ED_object's one.
2015-01-12 12:05:47 +01:00
ee4453f083
Transfer Data: add main core code and operators.
...
This add code needed to map a CD data layout from source mesh towards destination one,
and code needed to actually transfer data, using BKE's mesh remap generated data.
This allows to transfer most CD layers (vgroups, vcols, uvs...) as well as fake, boolean ones
(like smooth/sharp edges/faces, etc.). Some types are not yet transferable, mainly
shape keys, this is known TODO.
Data transfer can also use some advanced mixing in some cases (mostly, vgroups and vcols).
Notes:
* New transfer operators transfer data from active object towards selected ones.
* Modifier will be committed separately.
* Old weight transfer code (for vgroups) is kept for now, mostly because it is the only
usable one in weightpaint mode (it transfers from selected object to active one,
this is not sensible in Object mode, but needed in WeightPaint one). This will be addressed soon.
Again, heavily reviewed and enhanced by Campbell, thanks!
2015-01-09 19:32:44 +01:00
7d040d2a08
Cleanup: use BLI_listbase_*** prefix for count,sort,sort_r
2014-11-16 13:57:58 +01:00
1dbadf16a8
Fix for BKE_deform_flip_side_name getting fooled by extra separator characters
...
D740 by ldo with own edits
2014-08-19 16:18:07 +10:00
00b29156e0
Defines: replace ELEM3-16 with ELEM(...), that can take varargs
2014-07-20 01:33:40 +10:00
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
b3afbcab8f
ListBase API: add utility api funcs for clearing and checking empty
2014-02-08 06:24:05 +11:00
d900f5be55
Code cleanup: use bools where possible
2014-02-03 19:35:44 +11:00
8f7f8d679c
Style Cleanup: whitespace
2013-11-17 22:00:57 +11:00
e62cdbb474
code cleanup: rename flip_side_name to BKE_deform_flip_side_name
2013-11-17 05:23:05 +11:00
4be7427346
Weight Paint Tools: Add "Subset" option to "Normalize All"
...
This option is needed when vertex groups are used for both armature
deformation and the other purpose such as influence of mesh modifier.
Thanks to Campbell for code review!
2013-10-10 06:33:23 +00:00
684c4cc40d
fix for BKE_deform_split_suffix()
...
- out of bounds read when passing in empty string.
- single character prefix didnt work.
- with no suffix, the string body was truncated.
2013-07-27 18:16:22 +00:00
02468b290a
code cleanup: use MEM_mallocN rather then MEM_callocN when the array is
...
overwritten immediately after.
2013-07-19 10:41:16 +00:00
70dc1d8cb6
stop adding groups from changing the active group with weight transfer, add BKE_defgroup_new function.
2013-07-04 03:56:18 +00:00
37f5945188
style cleanup
2013-06-25 10:44:30 +00:00
70fd2320c8
Added polished Vertex Weights Panel (properties sidebar)
2013-06-23 15:37:08 +00:00
65dcc6ad4f
use bool arrays rather then char for weight paint lock/select arrays
2013-05-15 15:52:48 +00:00
6926596174
More new data names translation (most cases should be covered now).
...
Also done a few cleanup here and there...
2013-03-25 08:29:06 +00:00
8655be437d
code cleanup: use bool where values are true/false, for view3d and related functions.
2013-03-20 23:14:18 +00:00
0d5b028d43
patch [ #34103 ] use boolean in path functions and add comments.
...
path_util_1.patch from Lawrence D'Oliveiro (ldo)
2013-03-04 19:27:51 +00:00
b00c3b801b
new weight paint draw option to display unweighted vertices with the option to check on the active group or all groups.
...
notes:
- vertices with zero weights are considered the same as vertices outside of a group.
- currently these show black but this can be made a theme color.
- multi-paint overrides this option (noted in description)
2013-02-22 04:09:04 +00:00
0ac2f6e7d7
fix for own bug - memory leak when cancelling weight gradient tool
2013-02-11 04:43:49 +00:00
a4a3ed0018
r53351 removed a NULL check for name in defgroup_name_index(). name can be NULL when deforming verts in the BGE, so I'm adding a NULL check back in.
2013-01-02 22:14:40 +00:00
7730ddb3d6
code cleanup:
...
- free_dverts -> BKE_defvert_array_free
- copy_dverts -> BKE_defvert_array_copy
also move the functions from BKE_mesh into BKE_deform
2012-12-28 09:06:48 +00:00
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