Blender V5.3
MOD_ui_common.cc File Reference
#include "BLI_listbase.hh"
#include "BLI_string_utf8.hh"
#include "MEM_guardedalloc.h"
#include "BKE_context.hh"
#include "BKE_library.hh"
#include "BKE_modifier.hh"
#include "BKE_screen.hh"
#include "DNA_object_types.h"
#include "DNA_particle_types.h"
#include "DNA_screen_types.h"
#include "ED_object.hh"
#include "BLT_translation.hh"
#include "UI_interface.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "MOD_ui_common.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static bool blender::modifier_ui_poll (const bContext *C, PanelType *)
Panel Drag and Drop, Expansion Saving
static void blender::modifier_reorder (bContext *C, Panel *panel, int new_index)
static short blender::get_modifier_expand_flag (const bContext *, Panel *panel)
static void blender::set_modifier_expand_flag (const bContext *, Panel *panel, short expand_flag)
Modifier Registration Helpers
PanelType * blender::modifier_panel_register (ARegionType *region_type, ModifierType type, PanelDrawFn draw)
PanelType * blender::modifier_subpanel_register (ARegionType *region_type, const char *name, const char *label, PanelDrawFn draw_header, PanelDrawFn draw, PanelType *parent)

Modifier Panel Layouts

#define ERROR_LIBDATA_MESSAGE   N_("External library data")
void blender::modifier_error_message_draw (ui::Layout &layout, PointerRNA *ptr)
PointerRNA * blender::modifier_panel_get_property_pointers (Panel *panel, PointerRNA *r_ob_ptr)
void blender::modifier_vgroup_ui (ui::Layout &layout, PointerRNA *ptr, PointerRNA *ob_ptr, const StringRefNull vgroup_prop, const std::optional< StringRefNull > invert_vgroup_prop, const std::optional< StringRefNull > text)
void blender::modifier_grease_pencil_curve_header_draw (const bContext *, Panel *panel)
void blender::modifier_grease_pencil_curve_panel_draw (const bContext *, Panel *panel)
static int blender::modifier_is_simulation (const ModifierData *md)
static bool blender::modifier_can_delete (ModifierData *md)
static void blender::modifier_ops_extra_draw (bContext *C, ui::Layout *layout, void *md_v)
static void blender::modifier_panel_header (const bContext *C, Panel *panel)

Macro Definition Documentation

◆ ERROR_LIBDATA_MESSAGE

#define ERROR_LIBDATA_MESSAGE   N_("External library data")

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.

Note
The modifier #PointerRNA is owned by the panel so we only need a pointer to it.

Definition at line 105 of file MOD_ui_common.cc.