[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25731] trunk/blender/source/blender/ windowmanager/intern/wm_event_system.c: Macro: insert macro properties into sub operator properties when run ( this enables you to set a parameter on the macro itself and have the operator it runs use it ).

Martin Poirier theeth at yahoo.com
Tue Jan 5 04:31:58 CET 2010


Revision: 25731
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25731
Author:   theeth
Date:     2010-01-05 04:31:57 +0100 (Tue, 05 Jan 2010)

Log Message:
-----------
Macro: insert macro properties into sub operator properties when run (this enables you to set a parameter on the macro itself and have the operator it runs use it). Note that macro properties are not initialized from its operators yet, you have to add them manually. Also, this isn't really nice if two operators in the macro have the same property.

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_event_system.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_event_system.c	2010-01-05 03:29:41 UTC (rev 25730)
+++ trunk/blender/source/blender/windowmanager/intern/wm_event_system.c	2010-01-05 03:31:57 UTC (rev 25731)
@@ -391,6 +391,8 @@
 			wmOperatorType *otm= WM_operatortype_find(otmacro->idname, 0);
 			wmOperator *opm= wm_operator_create(wm, otm, otmacro->ptr, NULL);
 			
+			IDP_ReplaceGroupInGroup(opm->properties, motherop->properties);
+
 			BLI_addtail(&motherop->macro, opm);
 			opm->opm= motherop; /* pointer to mom, for modal() */
 		}





More information about the Bf-blender-cvs mailing list