[jasper/world/studio] Simplify EditWorldSizeCommand::mergeWith
All checks were successful
Build / build (push) Successful in 3m8s
All checks were successful
Build / build (push) Successful in 3m8s
This commit is contained in:
parent
b51098595a
commit
18e4183623
@ -38,9 +38,8 @@ bool EditWorldSizeCommand::mergeWith(studio::UndoCommand const&cmd) noexcept {
|
|||||||
m_newSize = es->m_newSize;
|
m_newSize = es->m_newSize;
|
||||||
// undo
|
// undo
|
||||||
resize(m_doc, m_oldSize);
|
resize(m_doc, m_oldSize);
|
||||||
m_doc.tiles = std::move(m_oldMap);
|
m_doc.tiles = m_oldMap;
|
||||||
// redo
|
// redo
|
||||||
m_oldMap = m_doc.tiles;
|
|
||||||
resize(m_doc, m_newSize);
|
resize(m_doc, m_newSize);
|
||||||
oxLogError(loadWorldStatic(m_objCache, m_doc).moveTo(m_worldStatic));
|
oxLogError(loadWorldStatic(m_objCache, m_doc).moveTo(m_worldStatic));
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user