diff options
Diffstat (limited to 'source/EditorAttachmentImpl.cpp')
-rw-r--r-- | source/EditorAttachmentImpl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/EditorAttachmentImpl.cpp b/source/EditorAttachmentImpl.cpp index 5193f84..62d15eb 100644 --- a/source/EditorAttachmentImpl.cpp +++ b/source/EditorAttachmentImpl.cpp @@ -5,16 +5,17 @@ EditorAttachment::EditorAttachment() { } std::unique_ptr<EditorAttachment> EaGameObject::Create(GameObject* object) { - EditorAttachment* result; + EaGameObject* result; auto kind = object->GetKind(); switch (kind) { case GameObject::KD_Player: result = new EaPlayer(); break; case GameObject::KD_LevelWrapper: result = new EaLevelWrapper(); break; - default: result = new EditorAttachment(); break; + default: result = new EaGameObject(); break; } result->name = GameObject::ToString(kind); + result->eulerAnglesRotation = glm::eulerAngles(object->GetRotation()); return std::unique_ptr<EditorAttachment>(result); } |