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:
authorTon Roosendaal <ton@blender.org>2005-08-22 00:09:50 +0400
committerTon Roosendaal <ton@blender.org>2005-08-22 00:09:50 +0400
commit5a381a5a1222e3774df77d8223c3c0ee332260f2 (patch)
tree9ab3aad257e41aab7c0d5127d40504df6b308d32 /source/blender/src/editdeform.c
parentd2f6ff1900aa859483d186ed2321af245e93cd83 (diff)
Made weight-painting more bearable :)
- Hotkey CTRL+TAB toggles weightpaint on/off - If Mesh has no vertex groups yet, it still accepts Weight Paint mode. Then, on a first painting stroke it creates a default group. - When combining WeightPaint mode with Bone selecting, if you select a Bone without vertex group it draws Mesh dark blue. On a first painting stroke it then also creates a new group, with the Bone name.
Diffstat (limited to 'source/blender/src/editdeform.c')
-rw-r--r--source/blender/src/editdeform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/editdeform.c b/source/blender/src/editdeform.c
index 053151e5c4b..97988a5c47c 100644
--- a/source/blender/src/editdeform.c
+++ b/source/blender/src/editdeform.c
@@ -621,8 +621,10 @@ void vertexgroup_select_by_name(Object *ob, char *name)
for (curdef = ob->defbase.first; curdef; curdef=curdef->next, actdef++){
if (!strcmp(curdef->name, name)) {
ob->actdef= actdef;
+ return;
}
}
+ ob->actdef=0; // this signals on painting to create a new one, if a bone in posemode is selected */
}