Changeset View
Changeset View
Standalone View
Standalone View
source/blender/shader_fx/intern/FX_ui_common.c
| Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| PointerRNA *ptr = UI_panel_custom_data_get(panel); | PointerRNA *ptr = UI_panel_custom_data_get(panel); | ||||
| BLI_assert(RNA_struct_is_a(ptr->type, &RNA_ShaderFx)); | BLI_assert(RNA_struct_is_a(ptr->type, &RNA_ShaderFx)); | ||||
| if (r_ob_ptr != NULL) { | if (r_ob_ptr != NULL) { | ||||
| RNA_pointer_create(ptr->owner_id, &RNA_Object, ptr->owner_id, r_ob_ptr); | RNA_pointer_create(ptr->owner_id, &RNA_Object, ptr->owner_id, r_ob_ptr); | ||||
| } | } | ||||
| uiLayoutSetContextPointer(panel->layout, "shaderfx", ptr); | UI_panel_context_pointer_set(panel, "shaderfx", ptr); | ||||
| return ptr; | return ptr; | ||||
| } | } | ||||
| #define ERROR_LIBDATA_MESSAGE TIP_("External library data") | #define ERROR_LIBDATA_MESSAGE TIP_("External library data") | ||||
| static void gpencil_shaderfx_ops_extra_draw(bContext *C, uiLayout *layout, void *fx_v) | static void gpencil_shaderfx_ops_extra_draw(bContext *C, uiLayout *layout, void *fx_v) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines | |||||