Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_relations.c
| Show First 20 Lines • Show All 1,048 Lines • ▼ Show 20 Lines | if (child->type == OB_GPENCIL) { | ||||
| has_children_of_type.gpencil = true; | has_children_of_type.gpencil = true; | ||||
| } | } | ||||
| } | } | ||||
| CTX_DATA_END; | CTX_DATA_END; | ||||
| if (parent->type == OB_ARMATURE) { | if (parent->type == OB_ARMATURE) { | ||||
| uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_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_NAME); | ||||
| if (!has_children_of_type.gpencil) { | |||||
| uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_ARMATURE_ENVELOPE); | uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_ARMATURE_ENVELOPE); | ||||
| } | |||||
| if (has_children_of_type.mesh || has_children_of_type.gpencil) { | if (has_children_of_type.mesh || has_children_of_type.gpencil) { | ||||
| uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_ARMATURE_AUTO); | uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_ARMATURE_AUTO); | ||||
| } | } | ||||
| uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_BONE); | uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_BONE); | ||||
| uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_BONE_RELATIVE); | uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_BONE_RELATIVE); | ||||
| } | } | ||||
| else if (parent->type == OB_CURVE) { | else if (parent->type == OB_CURVE) { | ||||
| uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_CURVE); | uiItemEnumO_ptr(layout, ot, NULL, 0, "type", PAR_CURVE); | ||||
| ▲ Show 20 Lines • Show All 1,691 Lines • Show Last 20 Lines | |||||