Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-01-22 14:51:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-22 14:51:57 +0400
commit1e3a2931ac0cfc9af790717bf19577e22ebda4f5 (patch)
tree6c1285dadfa2734dc7d402a991cb3f4fa605de66 /source/blender/editors/armature/editarmature.c
parent193df0f5a08d05463b28c35cd7cc9aef622e5c0a (diff)
fix [#33889] Unexpected weights after parenting with Empty Groups
out of range dvert's are now cleared before adding new-empty groups.
Diffstat (limited to 'source/blender/editors/armature/editarmature.c')
-rw-r--r--source/blender/editors/armature/editarmature.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c
index 4a987d15380..f56bf8d5dfd 100644
--- a/source/blender/editors/armature/editarmature.c
+++ b/source/blender/editors/armature/editarmature.c
@@ -4997,6 +4997,10 @@ void create_vgroups_from_armature(ReportList *reports, Scene *scene, Object *ob,
bArmature *arm = par->data;
if (mode == ARM_GROUPS_NAME) {
+ /* its possible there are DWeight's outside the range of the current
+ * objects deform groups, in this case the new groups wont be empty [#33889] */
+ ED_vgroup_data_clamp_range(ob->data, BLI_countlist(&ob->defbase));
+
/* Traverse the bone list, trying to create empty vertex
* groups corresponding to the bone.
*/