Fix #20327: uv smart project options can't be tweaked.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 29 Jan 2010 13:06:50 +0000 (13:06 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 29 Jan 2010 13:06:50 +0000 (13:06 +0000)
commit01ea2175db20e5b2040b427217d8b11bb8b31b09
treeb3082104e56dd775df44c3be1e85e87432ac250c
parent0621a8e08a6b0130b8f51782f4b75b2fe6a299da
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.
source/blender/blenloader/intern/readfile.c
source/blender/makesdna/DNA_windowmanager_types.h
source/blender/windowmanager/intern/wm_event_system.c