[jasper/world/studio/worldobjectseteditor] Make object edits obsolete if nothing changed
All checks were successful
Build / build (push) Successful in 3m54s
All checks were successful
Build / build (push) Successful in 3m54s
This commit is contained in:
parent
d33eef2be6
commit
2eba5a6882
@ -28,7 +28,9 @@ class EditObject: public studio::UndoCommand {
|
||||
m_doc{doc},
|
||||
m_objIdx{objIdx},
|
||||
m_oldVal{getVar(m_doc.objects[objIdx])},
|
||||
m_newVal{std::move(newVal)} {}
|
||||
m_newVal{std::move(newVal)} {
|
||||
setObsolete(m_oldVal == m_newVal);
|
||||
}
|
||||
|
||||
ox::Error redo() noexcept override {
|
||||
auto &obj = m_doc.objects[m_objIdx];
|
||||
|
Loading…
x
Reference in New Issue
Block a user