|
Blender V5.0
|
#include "BLI_listbase.h"#include "BKE_screen.hh"#include "BKE_shader_fx.h"#include "ED_object.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "UI_interface_layout.hh"Go to the source code of this file.
Functions | |
| static void | shaderfx_panel_id (void *fx_v, char *r_idname) |
| void | uiTemplateShaderFx (uiLayout *, bContext *C) |
Template for building the panel layout for the active object's grease pencil shader effects.
Definition in file interface_template_shader_fx.cc.
|
static |
Function with void * argument for uiListPanelIDFromDataFunc.
Definition at line 27 of file interface_template_shader_fx.cc.
References BKE_shaderfxType_panel_id(), and ShaderFxData::type.
Referenced by uiTemplateShaderFx().
Check if the shader effect panels don't match the data and rebuild the panels if so.
Definition at line 33 of file interface_template_shader_fx.cc.
References BKE_shaderfx_get_info(), BLI_assert, C, blender::ed::object::context_active_object(), CTX_wm_region(), ListBase::first, PanelType::flag, Object::id, LISTBASE_FOREACH, MAX_NAME, Panel::next, ShaderFxTypeInfo::panel_register, PANEL_TYPE_INSTANCED, ARegion::panels, RNA_pointer_create_discrete(), Object::shader_fx, shaderfx_panel_id(), Panel::type, UI_panel_add_instanced(), UI_panel_custom_data_set(), UI_panel_list_matches_data(), and UI_panels_free_instanced().