Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_ui_common.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| sub = uiLayoutRow(row, true); | sub = uiLayoutRow(row, true); | ||||
| if (index < cage_index || !BKE_modifier_couldbe_cage(scene, md)) { | if (index < cage_index || !BKE_modifier_couldbe_cage(scene, md)) { | ||||
| uiLayoutSetActive(sub, false); | uiLayoutSetActive(sub, false); | ||||
| } | } | ||||
| uiItemR(sub, ptr, "show_on_cage", 0, "", ICON_NONE); | uiItemR(sub, ptr, "show_on_cage", 0, "", ICON_NONE); | ||||
| buttons_number++; | buttons_number++; | ||||
| } | } | ||||
| } /* Tessellation point for curve-typed objects. */ | } /* Tessellation point for curve-typed objects. */ | ||||
| else if (ELEM(ob->type, OB_CURVE, OB_SURF, OB_FONT)) { | else if (ELEM(ob->type, OB_CURVES_LEGACY, OB_SURF, OB_FONT)) { | ||||
| /* Some modifiers can work with pre-tessellated curves only. */ | /* Some modifiers can work with pre-tessellated curves only. */ | ||||
| if (ELEM(md->type, eModifierType_Hook, eModifierType_Softbody, eModifierType_MeshDeform)) { | if (ELEM(md->type, eModifierType_Hook, eModifierType_Softbody, eModifierType_MeshDeform)) { | ||||
| /* Add button (appearing to be ON) and add tip why this can't be changed. */ | /* Add button (appearing to be ON) and add tip why this can't be changed. */ | ||||
| sub = uiLayoutRow(row, true); | sub = uiLayoutRow(row, true); | ||||
| uiBlock *block = uiLayoutGetBlock(sub); | uiBlock *block = uiLayoutGetBlock(sub); | ||||
| static int apply_on_spline_always_on_hack = eModifierMode_ApplyOnSpline; | static int apply_on_spline_always_on_hack = eModifierMode_ApplyOnSpline; | ||||
| uiBut *but = uiDefIconButBitI(block, | uiBut *but = uiDefIconButBitI(block, | ||||
| UI_BTYPE_TOGGLE, | UI_BTYPE_TOGGLE, | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||