Blender Git Commit Log

Git Commits -> Revision 29b546f

Revision 29b546f by Lukas Toenne (master)
September 17, 2013, 13:07 (GMT)
Fix for #36739: Delete new nodes added via the Add menu or toolbar if the subsequent transform operator is cancelled. This prevents ugly situations where nodes stick "under" the toolbar after clicking a
wrong button.

Works by adding a flag to transform operators "remove_on_cancel". This is currently only used for node transforms, the idea is that if set, the operator will remove the transformed elements when it is
cancelled. It's not possible to do that in the original NODE_OT_add_node operator, because transform is modal and there is no way of reacting to a cancel outside of the transform itself (previous attempt
used a macro operator, but that also doesn't work because subsequent operators don't get executed if the previous transform cancels).

Commit Details:

Full Hash: 29b546fe7f9ee4f03f785c7f985a9a15493a0afc
SVN Revision: 60197
Parent Commit: 40b5b66
Lines Changed: +33, -3

6 Modified Paths:

/release/scripts/startup/bl_operators/node.py (+2, -1) (Diff)
/source/blender/editors/transform/transform.c (+1, -1) (Diff)
/source/blender/editors/transform/transform.h (+3, -1) (Diff)
/source/blender/editors/transform/transform_conversions.c (+20, -0) (Diff)
/source/blender/editors/transform/transform_generics.c (+6, -0) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021