Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_particlesystem.c
| Show First 20 Lines • Show All 271 Lines • ▼ Show 20 Lines | static void panel_draw(const bContext *UNUSED(C), Panel *panel) | ||||
| PointerRNA ob_ptr; | PointerRNA ob_ptr; | ||||
| PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | PointerRNA *ptr = modifier_panel_get_property_pointers(panel, &ob_ptr); | ||||
| Object *ob = ob_ptr.data; | Object *ob = ob_ptr.data; | ||||
| ModifierData *md = (ModifierData *)ptr->data; | ModifierData *md = (ModifierData *)ptr->data; | ||||
| ParticleSystem *psys = ((ParticleSystemModifierData *)md)->psys; | ParticleSystem *psys = ((ParticleSystemModifierData *)md)->psys; | ||||
| uiItemL(layout, IFACE_("Settings are in the particle tab"), ICON_NONE); | uiItemL(layout, TIP_("Settings are in the particle tab"), ICON_NONE); | ||||
| if (!(ob->mode & OB_MODE_PARTICLE_EDIT)) { | if (!(ob->mode & OB_MODE_PARTICLE_EDIT)) { | ||||
| if (ELEM(psys->part->ren_as, PART_DRAW_GR, PART_DRAW_OB)) { | if (ELEM(psys->part->ren_as, PART_DRAW_GR, PART_DRAW_OB)) { | ||||
| uiItemO(layout, | uiItemO(layout, | ||||
| CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Make Instances Real"), | CTX_IFACE_(BLT_I18NCONTEXT_OPERATOR_DEFAULT, "Make Instances Real"), | ||||
| ICON_NONE, | ICON_NONE, | ||||
| "OBJECT_OT_duplicates_make_real"); | "OBJECT_OT_duplicates_make_real"); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines | |||||