DarkRadiant: master 530d16b6

Author Committer Branch Timestamp Parent
codereader codereader master 07.08.2017 16:15 master c956fcf3
Changeset Fix 0004596: Crash during undo after saving a map containing scaled models.
The fix is to connect the ModelKey class to the UndoSystem such that it can save its state to the stack. On Undo, it can restore its modelpath member, such that it matches the state of the underlying TraversableNodeSet as well as the KeyValue on top. Before this change, the ModelKey class tried to adjust itself to the keyvalue despite of the fact that the TraversableNodeSet has already been restored to the correct state, leading to duplicate child model nodes with the wrong scale.
Also fixed the model scale tool not naming its UndoableCommand.
mod - plugins/entity/EntityNode.cpp Diff File
mod - plugins/entity/ModelKey.cpp Diff File
mod - plugins/entity/ModelKey.h Diff File
mod - radiant/selection/ManipulateMouseTool.cpp Diff File