diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-21 02:11:12 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-21 02:11:12 +0300 |
commit | 92d93dd935817d8a3b5aef9a2faf84fe8b69c3dd (patch) | |
tree | 9958336ef1ce9c78b32c7f5ad0c2d377e0656702 /source/blender/makesrna | |
parent | b8bb0391d645747125bb70cb47f9c227eedc9a8e (diff) |
Fix T63686: missing data path for 3D cursor location and rotation.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |