diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-01-05 06:31:57 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-01-05 06:31:57 +0300 |
commit | 6e6560d9248e7bfad45409d6eb86640d7017d9f3 (patch) | |
tree | e6541ae63b96b994adac2980a35714dd83beecae /source/blender/windowmanager | |
parent | 22c32973e73363b7179303d601f59bd5c4d17d45 (diff) |
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.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 825d8cbcf8c..aff843dc1cb 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -391,6 +391,8 @@ static wmOperator *wm_operator_create(wmWindowManager *wm, wmOperatorType *ot, P 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() */ } |