Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_depsgraph.c
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
| # ifdef WITH_PYTHON | # ifdef WITH_PYTHON | ||||
| void **rna_DepsgraphIterator_instance(PointerRNA *ptr) | void **rna_DepsgraphIterator_instance(PointerRNA *ptr) | ||||
| { | { | ||||
| RNA_DepsgraphIterator *di = ptr->data; | RNA_DepsgraphIterator *di = ptr->data; | ||||
| return &di->py_instance; | return &di->py_instance; | ||||
| } | } | ||||
| # endif | # endif | ||||
| /* Temporary hack for Cycles until it is changed to work with the C API directly. */ | |||||
| DupliObject *rna_hack_DepsgraphObjectInstance_dupli_object_get(PointerRNA *ptr) | |||||
| { | |||||
| RNA_DepsgraphIterator *di = ptr->data; | |||||
| DEGObjectIterData *deg_iter = (DEGObjectIterData *)di->iter.data; | |||||
| return deg_iter->dupli_object_current; | |||||
| } | |||||
| static PointerRNA rna_DepsgraphObjectInstance_object_get(PointerRNA *ptr) | static PointerRNA rna_DepsgraphObjectInstance_object_get(PointerRNA *ptr) | ||||
| { | { | ||||
| RNA_DepsgraphIterator *di = ptr->data; | RNA_DepsgraphIterator *di = ptr->data; | ||||
| return rna_pointer_inherit_refine(ptr, &RNA_Object, di->iter.current); | return rna_pointer_inherit_refine(ptr, &RNA_Object, di->iter.current); | ||||
| } | } | ||||
| static bool rna_DepsgraphObjectInstance_is_instance_get(PointerRNA *ptr) | static bool rna_DepsgraphObjectInstance_is_instance_get(PointerRNA *ptr) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 762 Lines • Show Last 20 Lines | |||||