RNA: bpy.context.depsgraph
This commit is contained in:
parent
74023d46ce
commit
f2a2adc910
|
@ -101,6 +101,12 @@ static PointerRNA rna_Context_main_get(PointerRNA *ptr)
|
|||
return rna_pointer_inherit_refine(ptr, &RNA_BlendData, CTX_data_main(C));
|
||||
}
|
||||
|
||||
static PointerRNA rna_Context_depsgraph_get(PointerRNA *ptr)
|
||||
{
|
||||
bContext *C = (bContext *)ptr->data;
|
||||
return rna_pointer_inherit_refine(ptr, &RNA_Depsgraph, CTX_data_depsgraph(C));
|
||||
}
|
||||
|
||||
static PointerRNA rna_Context_scene_get(PointerRNA *ptr)
|
||||
{
|
||||
bContext *C = (bContext *)ptr->data;
|
||||
|
@ -218,6 +224,11 @@ void RNA_def_context(BlenderRNA *brna)
|
|||
RNA_def_property_struct_type(prop, "BlendData");
|
||||
RNA_def_property_pointer_funcs(prop, "rna_Context_main_get", NULL, NULL, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "depsgraph", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_struct_type(prop, "Depsgraph");
|
||||
RNA_def_property_pointer_funcs(prop, "rna_Context_depsgraph_get", NULL, NULL, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "scene", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_struct_type(prop, "Scene");
|
||||
|
|
Loading…
Reference in New Issue