[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55264] trunk/blender/source/blender/ editors: Remove OPTYPE_REGISTER flag from click handler operator for anim editors

Joshua Leung aligorith at gmail.com
Thu Mar 14 06:58:14 CET 2013


Revision: 55264
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55264
Author:   aligorith
Date:     2013-03-14 05:58:13 +0000 (Thu, 14 Mar 2013)
Log Message:
-----------
Remove OPTYPE_REGISTER flag from click handler operator for anim editors

1) It made no sense to show this as the last operator which was used, since
these can only be used from the anim editors (and not the 3D View where this
panel appears most of the time)
2) Mouse select operators in other places didn't do this
3) There aren't really any editable parameters for this operator anyway
4) It's highly dependent on valid mouse coordinates as input.

Apart from that, undo still works fine, so no need to really keep this here.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/anim_channels_edit.c
    trunk/blender/source/blender/editors/space_nla/nla_channels.c

Modified: trunk/blender/source/blender/editors/animation/anim_channels_edit.c
===================================================================
--- trunk/blender/source/blender/editors/animation/anim_channels_edit.c	2013-03-14 05:52:30 UTC (rev 55263)
+++ trunk/blender/source/blender/editors/animation/anim_channels_edit.c	2013-03-14 05:58:13 UTC (rev 55264)
@@ -2652,7 +2652,7 @@
 	ot->poll = animedit_poll_channels_active;
 	
 	/* flags */
-	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+	ot->flag = OPTYPE_UNDO;
 	
 	/* properties */
 	/* NOTE: don't save settings, otherwise, can end up with some weird behaviour (sticky extend) */

Modified: trunk/blender/source/blender/editors/space_nla/nla_channels.c
===================================================================
--- trunk/blender/source/blender/editors/space_nla/nla_channels.c	2013-03-14 05:52:30 UTC (rev 55263)
+++ trunk/blender/source/blender/editors/space_nla/nla_channels.c	2013-03-14 05:58:13 UTC (rev 55264)
@@ -380,7 +380,7 @@
 	ot->poll = ED_operator_nla_active;
 	
 	/* flags */
-	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+	ot->flag = OPTYPE_UNDO;
 	
 	/* props */
 	prop = RNA_def_boolean(ot->srna, "extend", 0, "Extend Select", ""); // SHIFTKEY




More information about the Bf-blender-cvs mailing list