Fix T73660: Hide envelop option for Grease Pencil weights generation
As this feature is not supported yet, it's better to hide for grease pencil. Differential Revision: https://developer.blender.org/D6777
This commit is contained in:
parent
03000549fb
commit
47d13fecfb
Notes:
blender-bot
2023-02-14 00:57:33 +01:00
Referenced by issue #73660, Greasepencil parent to armature with envelope weights assigns wrong weights
|
@ -1054,7 +1054,9 @@ static int parent_set_invoke_menu(bContext *C, wmOperatorType *ot)
|
|||
if (parent->type == OB_ARMATURE) {
|
||||
uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_ARMATURE);
|
||||
uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_ARMATURE_NAME);
|
||||
uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_ARMATURE_ENVELOPE);
|
||||
if (!has_children_of_type.gpencil) {
|
||||
uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_ARMATURE_ENVELOPE);
|
||||
}
|
||||
if (has_children_of_type.mesh || has_children_of_type.gpencil) {
|
||||
uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_ARMATURE_AUTO);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue