Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_templates.c
| Show First 20 Lines • Show All 1,187 Lines • ▼ Show 20 Lines | else { | ||||
| uiItemO(row, "", ICON_TRIA_UP, "OBJECT_OT_modifier_move_up"); | uiItemO(row, "", ICON_TRIA_UP, "OBJECT_OT_modifier_move_up"); | ||||
| uiItemO(row, "", ICON_TRIA_DOWN, "OBJECT_OT_modifier_move_down"); | uiItemO(row, "", ICON_TRIA_DOWN, "OBJECT_OT_modifier_move_down"); | ||||
| UI_block_align_end(block); | UI_block_align_end(block); | ||||
| UI_block_emboss_set(block, UI_EMBOSS_NONE); | UI_block_emboss_set(block, UI_EMBOSS_NONE); | ||||
| /* When Modifier is a simulation, show button to switch to context rather than the delete button. */ | /* When Modifier is a simulation, show button to switch to context rather than the delete button. */ | ||||
| if (modifier_can_delete(md) && | if (modifier_can_delete(md) && | ||||
| (!modifier_is_simulation(md) || | (!modifier_is_simulation(md) || | ||||
| STREQ(scene->r.engine, RE_engine_id_BLENDER_GAME))) | STREQ(scene->view_render->engine_id, RE_engine_id_BLENDER_GAME))) | ||||
| { | { | ||||
| uiItemO(row, "", ICON_X, "OBJECT_OT_modifier_remove"); | uiItemO(row, "", ICON_X, "OBJECT_OT_modifier_remove"); | ||||
| } | } | ||||
| else if (modifier_is_simulation(md) == 1) { | else if (modifier_is_simulation(md) == 1) { | ||||
| uiItemStringO(row, "", ICON_BUTS, "WM_OT_properties_context_change", "context", "PHYSICS"); | uiItemStringO(row, "", ICON_BUTS, "WM_OT_properties_context_change", "context", "PHYSICS"); | ||||
| } | } | ||||
| else if (modifier_is_simulation(md) == 2) { | else if (modifier_is_simulation(md) == 2) { | ||||
| uiItemStringO(row, "", ICON_BUTS, "WM_OT_properties_context_change", "context", "PARTICLES"); | uiItemStringO(row, "", ICON_BUTS, "WM_OT_properties_context_change", "context", "PARTICLES"); | ||||
| ▲ Show 20 Lines • Show All 3,049 Lines • Show Last 20 Lines | |||||