diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-18 18:33:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-18 18:33:43 +0300 |
commit | 8cf6b390e3888c77265b9b34740fb52599a96d7f (patch) | |
tree | 8fca8e95e48653ece5cd63bc55a1eb825c2caa3e /source | |
parent | 9ae90efc8e87bf646e356f0f0d0e40b536798207 (diff) |
fix for weight painting bug, weight painting would fail when entering weight pait mode in some cases.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 2 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_object_types.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 4e31dffd3da..a9904ee7f1e 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -464,7 +464,7 @@ void ED_vgroup_select_by_name(Object *ob, char *name) } } - ob->actdef=0; // this signals on painting to create a new one, if a bone in posemode is selected */ + ob->actdef= 1; // this signals on painting to create a new one, if a bone in posemode is selected */ } /********************** Operator Implementations *********************/ diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h index dbb7294f108..09b8ac01a45 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -196,7 +196,7 @@ typedef struct Object { float bbsize[3]; short index; /* custom index, for renderpasses */ - unsigned short actdef; /* current deformation group */ + unsigned short actdef; /* current deformation group, note: index starts at 1 */ float col[4]; /* object color, adjusted via IPO's only */ /** * Settings for game objects |