From 8510a85f79f706b93982b4e398b187b5f77081dd Mon Sep 17 00:00:00 2001 From: rtk0c Date: Fri, 3 Jun 2022 22:58:28 -0700 Subject: 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. --- source/30-game/EditorAttachmentImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/30-game/EditorAttachmentImpl.cpp') 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 + EditorAttachment::EditorAttachment() { } @@ -15,7 +17,7 @@ std::unique_ptr 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(result); } -- cgit v1.2.3-70-g09d2