diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-29 16:06:50 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-29 16:06:50 +0300 |
commit | 01ea2175db20e5b2040b427217d8b11bb8b31b09 (patch) | |
tree | b3082104e56dd775df44c3be1e85e87432ac250c /source/blender/makesdna | |
parent | 0621a8e08a6b0130b8f51782f4b75b2fe6a299da (diff) |
Fix #20327: uv smart project options can't be tweaked.
Python operators calling C operators would get too many undo pushes,
causing redo of the python operator not to work. Now the depth of
operator callbacks is counted to detected nested calls, and in that
case skip the undo/register here, and only do a single undo/register
for the mother operator.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_windowmanager_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index 4a7080034ee..f520a3d5fb2 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -109,7 +109,7 @@ typedef struct wmWindowManager { int initialized; /* set on file read */ short file_saved; /* indicator whether data was saved */ - short pad; + short op_undo_depth; /* operator stack depth to avoid nested undo pushes */ ListBase operators; /* operator registry */ |