[Bf-blender-cvs] [92d93dd9358] master: Fix T63686: missing data path for 3D cursor location and rotation.

Brecht Van Lommel noreply at git.blender.org
Sun Apr 21 01:12:08 CEST 2019


Commit: 92d93dd935817d8a3b5aef9a2faf84fe8b69c3dd
Author: Brecht Van Lommel
Date:   Sun Apr 21 01:11:12 2019 +0200
Branches: master
https://developer.blender.org/rB92d93dd935817d8a3b5aef9a2faf84fe8b69c3dd

Fix T63686: missing data path for 3D cursor location and rotation.

===================================================================

M	source/blender/makesrna/intern/rna_scene.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index ccf9c0c254d..857730beac7 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1839,6 +1839,11 @@ static void rna_View3DCursor_rotation_axis_angle_set(PointerRNA *ptr, const floa
   copy_v3_v3(cursor->rotation_axis, &value[1]);
 }
 
+static char *rna_View3DCursor_path(PointerRNA *UNUSED(ptr))
+{
+  return BLI_strdup("cursor");
+}
+
 static TimeMarker *rna_TimeLine_add(Scene *scene, const char name[], int frame)
 {
   TimeMarker *marker = MEM_callocN(sizeof(TimeMarker), "TimeMarker");
@@ -2530,6 +2535,7 @@ static void rna_def_view3d_cursor(BlenderRNA *brna)
 
   srna = RNA_def_struct(brna, "View3DCursor", NULL);
   RNA_def_struct_sdna(srna, "View3DCursor");
+  RNA_def_struct_path_func(srna, "rna_View3DCursor_path");
   RNA_def_struct_ui_text(srna, "3D Cursor", "");
 
   prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ_LENGTH);



More information about the Bf-blender-cvs mailing list