47 {0,
nullptr, 0,
nullptr,
nullptr},
164static void rna_Context_engine_get(
PointerRNA *
ptr,
char *value)
168 strcpy(value, engine_type->
idname);
175 return strlen(engine_type->
idname);
188 &RNA_LayerCollection,
201 *
reinterpret_cast<ID *
>(scene), &RNA_ToolSettings, toolsettings);
220static Depsgraph *rna_Context_evaluated_depsgraph_get(
bContext *
C)
284 "The current space, may be None in background-mode, "
285 "when the cursor is outside the window or "
286 "when using menu-search");
298 prop,
"Popup Region",
"The temporary region for pop-ups (including menus and pop-overs)");
334 prop,
"rna_Context_engine_get",
"rna_Context_engine_length",
nullptr);
345 prop,
"rna_Context_layer_collection_get",
nullptr,
nullptr,
nullptr);
362 func =
RNA_def_function(srna,
"evaluated_depsgraph_get",
"rna_Context_evaluated_depsgraph_get");
365 "Get the dependency graph for the current scene and view layer, to access to data-blocks "
366 "with animation and modifiers applied. If any data-blocks have been edited, the dependency "
367 "graph will be updated. This invalidates all references to evaluated data-blocks from the "
368 "dependency graph.");
369 parm =
RNA_def_pointer(func,
"depsgraph",
"Depsgraph",
"",
"Evaluated dependency graph");
WorkSpace * CTX_wm_workspace(const bContext *C)
bScreen * CTX_wm_screen(const bContext *C)
LayerCollection * CTX_data_layer_collection(const bContext *C)
void * CTX_wm_region_data(const bContext *C)
ARegion * CTX_wm_region_popup(const bContext *C)
@ CTX_MODE_VERTEX_GPENCIL_LEGACY
@ CTX_MODE_WEIGHT_GPENCIL_LEGACY
@ CTX_MODE_SCULPT_GPENCIL_LEGACY
@ CTX_MODE_PAINT_GREASE_PENCIL
@ CTX_MODE_PAINT_GPENCIL_LEGACY
@ CTX_MODE_SCULPT_GREASE_PENCIL
@ CTX_MODE_EDIT_POINTCLOUD
@ CTX_MODE_EDIT_GREASE_PENCIL
@ CTX_MODE_WEIGHT_GREASE_PENCIL
@ CTX_MODE_VERTEX_GREASE_PENCIL
@ CTX_MODE_EDIT_GPENCIL_LEGACY
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C)
ScrArea * CTX_wm_area(const bContext *C)
wmWindow * CTX_wm_window(const bContext *C)
RenderEngineType * CTX_data_engine_type(const bContext *C)
SpaceLink * CTX_wm_space_data(const bContext *C)
Scene * CTX_data_scene(const bContext *C)
SpaceSeq * CTX_wm_space_seq(const bContext *C)
class blender::asset_system::AssetRepresentation * CTX_wm_asset(const bContext *C)
Main * CTX_data_main(const bContext *C)
wmGizmoGroup * CTX_wm_gizmo_group(const bContext *C)
ToolSettings * CTX_data_tool_settings(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
Collection * CTX_data_collection(const bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
Scene * CTX_data_sequencer_scene(const bContext *C)
View3D * CTX_wm_view3d(const bContext *C)
enum eContextObjectMode CTX_data_mode_enum(const bContext *C)
ViewLayer * CTX_data_view_layer(const bContext *C)
#define BPy_BEGIN_ALLOW_THREADS
#define BPy_END_ALLOW_THREADS
BPy_StructRNA * depsgraph
PointerRNA RNA_pointer_create_id_subdata(ID &id, StructRNA *type, void *data)
const PointerRNA PointerRNA_NULL
PointerRNA RNA_main_pointer_create(Main *main)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
PointerRNA RNA_id_pointer_create(ID *id)
const EnumPropertyItem rna_enum_context_mode_items[]
void RNA_def_context(BlenderRNA *brna)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
struct ToolSettings * toolsettings