It appears that changes to project properties do not undo properly if the changes are made within a nested UndoBlock.
In my case, I need to do a render at a specific resolution and frame rate (irrespective of what the user happens to have set up), so I make the changes within an UndoBlock, do the render, and then cancel the changes. I've discovered that the app comes back in an odd state if that UndoBlock is nested within another. Specifically, the preview window goes black except for the first frame of the project, and the project properties are not restored to their original values. However, they are restored properly if I then cancel the outer UndoBlock.
I was able to work around this problem by arranging the render to occur in an outer UndoBlock.
In my case, I need to do a render at a specific resolution and frame rate (irrespective of what the user happens to have set up), so I make the changes within an UndoBlock, do the render, and then cancel the changes. I've discovered that the app comes back in an odd state if that UndoBlock is nested within another. Specifically, the preview window goes black except for the first frame of the project, and the project properties are not restored to their original values. However, they are restored properly if I then cancel the outer UndoBlock.
I was able to work around this problem by arranging the render to occur in an outer UndoBlock.