[jasper/world/studio] Fixes for Studio update
All checks were successful
Build / build (push) Successful in 3m12s
All checks were successful
Build / build (push) Successful in 3m12s
This commit is contained in:
parent
d92542dc8b
commit
3cb4058ae1
@ -33,7 +33,7 @@ int EditObjectName::commandId() const noexcept {
|
|||||||
return static_cast<int>(WorldObjCommand::EditObjectName);
|
return static_cast<int>(WorldObjCommand::EditObjectName);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EditObjectName::mergeWith(UndoCommand const&cmd) noexcept {
|
bool EditObjectName::mergeWith(UndoCommand &cmd) noexcept {
|
||||||
auto const en = dynamic_cast<EditObjectName const*>(&cmd);
|
auto const en = dynamic_cast<EditObjectName const*>(&cmd);
|
||||||
if (en && m_objIdx == en->m_objIdx) {
|
if (en && m_objIdx == en->m_objIdx) {
|
||||||
m_newVal = en->m_newVal;
|
m_newVal = en->m_newVal;
|
||||||
@ -65,7 +65,7 @@ int EditObjectInterval::commandId() const noexcept {
|
|||||||
return static_cast<int>(WorldObjCommand::EditObjectInterval);
|
return static_cast<int>(WorldObjCommand::EditObjectInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EditObjectInterval::mergeWith(UndoCommand const&cmd) noexcept {
|
bool EditObjectInterval::mergeWith(UndoCommand &cmd) noexcept {
|
||||||
auto const en = dynamic_cast<EditObjectInterval const*>(&cmd);
|
auto const en = dynamic_cast<EditObjectInterval const*>(&cmd);
|
||||||
if (en && m_objIdx == en->m_objIdx) {
|
if (en && m_objIdx == en->m_objIdx) {
|
||||||
m_newVal = en->m_newVal;
|
m_newVal = en->m_newVal;
|
||||||
|
@ -24,7 +24,7 @@ class EditObjectName: public studio::UndoCommand {
|
|||||||
ox::Error undo() noexcept override;
|
ox::Error undo() noexcept override;
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
int commandId() const noexcept override;
|
int commandId() const noexcept override;
|
||||||
bool mergeWith(UndoCommand const&cmd) noexcept override;
|
bool mergeWith(UndoCommand &cmd) noexcept override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class EditObjectInterval: public studio::UndoCommand {
|
class EditObjectInterval: public studio::UndoCommand {
|
||||||
@ -39,7 +39,7 @@ class EditObjectInterval: public studio::UndoCommand {
|
|||||||
ox::Error undo() noexcept override;
|
ox::Error undo() noexcept override;
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
int commandId() const noexcept override;
|
int commandId() const noexcept override;
|
||||||
bool mergeWith(UndoCommand const&cmd) noexcept override;
|
bool mergeWith(UndoCommand &cmd) noexcept override;
|
||||||
};
|
};
|
||||||
|
|
||||||
class EditObjectSubSheet: public studio::UndoCommand {
|
class EditObjectSubSheet: public studio::UndoCommand {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user