diff options
author | Hans Goudey <h.goudey@me.com> | 2021-01-06 23:00:44 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-01-06 23:00:44 +0300 |
commit | 6ea01dc509f82458b2e7f1d040dc4d2f0e7820fe (patch) | |
tree | ac9bc104b8ad6e7ae6312f1aa70382aac8db78a6 /source/blender/makesrna/intern/rna_scene.c | |
parent | 3028de9527a0a7e2772fd87fcf1abbf823698371 (diff) |
UI: Use the 3D cursor icon for the RNA struct
Since there is a specific icon to represent the 3D cursor it makes sense
to add it to the RNA struct. This struct's icon is only displayed in the
Data API section of the outliner.
Diffstat (limited to 'source/blender/makesrna/intern/rna_scene.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_scene.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index 265d9c5b98e..af31f16f4e0 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -2821,6 +2821,7 @@ static void rna_def_view3d_cursor(BlenderRNA *brna) RNA_def_struct_sdna(srna, "View3DCursor"); RNA_def_struct_path_func(srna, "rna_View3DCursor_path"); RNA_def_struct_ui_text(srna, "3D Cursor", ""); + RNA_def_struct_ui_icon(srna, ICON_CURSOR); prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ_LENGTH); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); |