aboutsummaryrefslogtreecommitdiff
path: root/source/30-game/EditorAttachmentImpl.cpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-03 22:58:28 -0700
committerrtk0c <[email protected]>2022-06-03 22:58:28 -0700
commit8510a85f79f706b93982b4e398b187b5f77081dd (patch)
tree996c27f54f748d940f58454f7ef1e1570d1a31d5 /source/30-game/EditorAttachmentImpl.cpp
parentbd07ae3f4e1bcdedc3e373460671ca9713a03de5 (diff)
Changeset: 61 [BUGGED] Move object kind enums to use generated ToString and FromStrong
The old mechanism rely on a specific prefix to Ires and GameObject string representations, but the generator currently leaves the enum value. Therefore all editor (e.g. drag & drop) and IO (e.g. ires loading) mechanisms are broken.
Diffstat (limited to 'source/30-game/EditorAttachmentImpl.cpp')
-rw-r--r--source/30-game/EditorAttachmentImpl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/30-game/EditorAttachmentImpl.cpp b/source/30-game/EditorAttachmentImpl.cpp
index 62d15eb..b09c133 100644
--- a/source/30-game/EditorAttachmentImpl.cpp
+++ b/source/30-game/EditorAttachmentImpl.cpp
@@ -1,6 +1,8 @@
#include "EditorAttachmentImpl.hpp"
#include "EditorAttachment.hpp"
+#include <Metadata.hpp>
+
EditorAttachment::EditorAttachment() {
}
@@ -15,7 +17,7 @@ std::unique_ptr<EditorAttachment> EaGameObject::Create(GameObject* object) {
default: result = new EaGameObject(); break;
}
- result->name = GameObject::ToString(kind);
+ result->name = Metadata::EnumToString(kind);
result->eulerAnglesRotation = glm::eulerAngles(object->GetRotation());
return std::unique_ptr<EditorAttachment>(result);
}