[Bf-blender-cvs] [28d623f95d9] custom-manipulators: Don't use undo for manipulator tweak operator

Campbell Barton noreply at git.blender.org
Thu Jun 15 12:17:36 CEST 2017


Commit: 28d623f95d90a6a0494f2e1b0e850fd2b1c3ed99
Author: Campbell Barton
Date:   Thu Jun 15 06:07:13 2017 +1000
Branches: custom-manipulators
https://developer.blender.org/rB28d623f95d90a6a0494f2e1b0e850fd2b1c3ed99

Don't use undo for manipulator tweak operator

This causes problems when tweaking an operator

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

M	source/blender/windowmanager/manipulators/intern/wm_manipulatorgroup.c

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

diff --git a/source/blender/windowmanager/manipulators/intern/wm_manipulatorgroup.c b/source/blender/windowmanager/manipulators/intern/wm_manipulatorgroup.c
index e3c45bd35e3..3deef0cee5c 100644
--- a/source/blender/windowmanager/manipulators/intern/wm_manipulatorgroup.c
+++ b/source/blender/windowmanager/manipulators/intern/wm_manipulatorgroup.c
@@ -389,7 +389,11 @@ void MANIPULATORGROUP_OT_manipulator_tweak(wmOperatorType *ot)
 	ot->invoke = manipulator_tweak_invoke;
 	ot->modal = manipulator_tweak_modal;
 
+	/* TODO(campbell) This causes problems tweaking settings for operators,
+	 * need to find a way to support this. */
+#if 0
 	ot->flag = OPTYPE_UNDO;
+#endif
 }
 
 /** \} */ // Manipulator operators




More information about the Bf-blender-cvs mailing list