130 bool is_handle_valid;
132 if (!is_handle_valid) {
139 NULL, &RNA_FileSelectEntry, (
struct FileDirEntry *)asset_handle.file_data, &newptr);
165 static void rna_Context_engine_get(
PointerRNA *
ptr,
char *value)
169 strcpy(value, engine_type->idname);
176 return strlen(engine_type->idname);
298 "The file of an active asset. Avoid using this, it will be replaced by "
299 "a proper AssetHandle design");
346 func =
RNA_def_function(srna,
"evaluated_depsgraph_get",
"rna_Context_evaluated_depsgraph_get");
349 "Get the dependency graph for the current scene and view layer, to access to data-blocks "
350 "with animation and modifiers applied. If any data-blocks have been edited, the dependency "
351 "graph will be updated. This invalidates all references to evaluated data-blocks from the "
352 "dependency graph.");
353 parm =
RNA_def_pointer(func,
"depsgraph",
"Depsgraph",
"",
"Evaluated dependency graph");
struct WorkSpace * CTX_wm_workspace(const bContext *C)
struct ScrArea * CTX_wm_area(const bContext *C)
struct Scene * CTX_data_scene(const bContext *C)
struct RenderEngineType * CTX_data_engine_type(const bContext *C)
struct LayerCollection * CTX_data_layer_collection(const bContext *C)
struct wmWindowManager * CTX_wm_manager(const bContext *C)
@ CTX_MODE_WEIGHT_GPENCIL
@ CTX_MODE_VERTEX_GPENCIL
@ CTX_MODE_SCULPT_GPENCIL
struct ViewLayer * CTX_data_view_layer(const bContext *C)
struct Collection * CTX_data_collection(const bContext *C)
struct wmGizmoGroup * CTX_wm_gizmo_group(const bContext *C)
struct Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C)
struct View3D * CTX_wm_view3d(const bContext *C)
struct bScreen * CTX_wm_screen(const bContext *C)
void * CTX_wm_region_data(const bContext *C)
struct AssetHandle CTX_wm_asset_handle(const bContext *C, bool *r_is_valid)
struct SpaceLink * CTX_wm_space_data(const bContext *C)
struct ARegion * CTX_wm_region(const bContext *C)
struct Main * CTX_data_main(const bContext *C)
struct ToolSettings * CTX_data_tool_settings(const bContext *C)
struct wmWindow * CTX_wm_window(const bContext *C)
enum eContextObjectMode CTX_data_mode_enum(const bContext *C)
#define BPy_BEGIN_ALLOW_THREADS
#define BPy_END_ALLOW_THREADS
struct Depsgraph Depsgraph
ID and Library types, which are fundamental for sdna.
const Depsgraph * depsgraph
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
void RNA_id_pointer_create(ID *id, PointerRNA *r_ptr)
const PointerRNA PointerRNA_NULL
PointerRNA rna_pointer_inherit_refine(PointerRNA *ptr, StructRNA *type, void *data)
const EnumPropertyItem rna_enum_context_mode_items[]
void RNA_def_context(BlenderRNA *brna)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
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)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
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)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
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)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)