[Bf-blender-cvs] [da1b002c8d2] master: UI: Skip undo steps when changing properties of the 3d cursor

Germano Cavalcante noreply at git.blender.org
Tue Mar 30 21:13:47 CEST 2021


Commit: da1b002c8d2f331d97458167746e5974d8556799
Author: Germano Cavalcante
Date:   Tue Mar 30 16:13:21 2021 -0300
Branches: master
https://developer.blender.org/rBda1b002c8d2f331d97458167746e5974d8556799

UI: Skip undo steps when changing properties of the 3d cursor

Differential revision: https://developer.blender.org/D10695

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

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 316619a30ba..65643aa92d7 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -2685,6 +2685,7 @@ static void rna_def_view3d_cursor(BlenderRNA *brna)
   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);
+  RNA_def_struct_clear_flag(srna, STRUCT_UNDO);
 
   prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ_LENGTH);
   RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);



More information about the Bf-blender-cvs mailing list