[Bf-blender-cvs] [d221a999cb1] blender2.8: Manipulator: add snap flag

Campbell Barton noreply at git.blender.org
Mon Jul 17 06:25:10 CEST 2017


Commit: d221a999cb18e67e638066c275fc3178e164df84
Author: Campbell Barton
Date:   Mon Jul 17 14:16:23 2017 +1000
Branches: blender2.8
https://developer.blender.org/rBd221a999cb18e67e638066c275fc3178e164df84

Manipulator: add snap flag

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

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

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

diff --git a/source/blender/makesrna/intern/rna_wm_manipulator.c b/source/blender/makesrna/intern/rna_wm_manipulator.c
index 030f1a1628c..9704a9524a6 100644
--- a/source/blender/makesrna/intern/rna_wm_manipulator.c
+++ b/source/blender/makesrna/intern/rna_wm_manipulator.c
@@ -914,6 +914,7 @@ static void rna_def_manipulator(BlenderRNA *brna, PropertyRNA *cprop)
 	/* wmManipulator.handler */
 	static EnumPropertyItem tweak_actions[] = {
 		{WM_MANIPULATOR_TWEAK_PRECISE, "PRECISE", 0, "Precise", ""},
+		{WM_MANIPULATOR_TWEAK_SNAP, "SNAP", 0, "Snap", ""},
 		{0, NULL, 0, NULL, NULL}
 	};
 	func = RNA_def_function(srna, "modal", NULL);




More information about the Bf-blender-cvs mailing list