Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_ui_common.c
| Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Draw modifier error message. | * Draw modifier error message. | ||||
| */ | */ | ||||
| void modifier_panel_end(uiLayout *layout, PointerRNA *ptr) | void modifier_panel_end(uiLayout *layout, PointerRNA *ptr) | ||||
| { | { | ||||
| ModifierData *md = ptr->data; | ModifierData *md = ptr->data; | ||||
| if (md->error) { | if (md->error) { | ||||
| uiLayout *row = uiLayoutRow(layout, false); | uiLayout *row = uiLayoutRow(layout, false); | ||||
| uiItemL(row, IFACE_(md->error), ICON_ERROR); | uiItemL(row, TIP_(md->error), ICON_ERROR); | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * Gets RNA pointers for the active object and the panel's modifier data. Also locks | * Gets RNA pointers for the active object and the panel's modifier data. Also locks | ||||
| * the layout if the modifier is from a linked object, and sets the context pointer. | * the layout if the modifier is from a linked object, and sets the context pointer. | ||||
| * | * | ||||
| * \note The modifier #PointerRNA is owned by the panel so we only need a pointer to it. | * \note The modifier #PointerRNA is owned by the panel so we only need a pointer to it. | ||||
| ▲ Show 20 Lines • Show All 377 Lines • Show Last 20 Lines | |||||