Support for auto-skinning when parenting a mesh to an armature.
Applies to bones that do not have a boneclass of unskinnable (set per bone in editmode in the button window).
This commit is contained in:
@@ -850,7 +850,14 @@ void make_parent(void)
|
||||
memset(base->object->loc, 0, 3*sizeof(float));
|
||||
}
|
||||
else {
|
||||
if(mode==PARSKEL && par->type == OB_ARMATURE) {
|
||||
if(mode==PARSKEL && par->type == OB_ARMATURE) {
|
||||
/* Prompt the user as to whether he wants to
|
||||
* add some vertex groups based on the bones
|
||||
* in the parent armature.
|
||||
*/
|
||||
create_vgroups_from_armature(base->object,
|
||||
par);
|
||||
|
||||
base->object->partype= PAROBJECT;
|
||||
what_does_parent(base->object);
|
||||
Mat4One (base->object->parentinv);
|
||||
|
Reference in New Issue
Block a user