Py-Driver: add 'self' option
[blender.git] / source / blender / python / intern / bpy_rna_driver.c
index 482508a8d857e340d80c8c147e49a00d108981f1..98fc372f2fcdfa57aeb61b943734c7d4a20eabc3 100644 (file)
@@ -77,3 +77,8 @@ PyObject *pyrna_driver_get_variable_value(
 
        return driver_arg;
 }
+
+PyObject *pyrna_driver_self_from_anim_rna(struct PathResolvedRNA *anim_rna)
+{
+       return pyrna_struct_CreatePyObject(&anim_rna->ptr);
+}