diff options
author | rtk0c <[email protected]> | 2022-05-07 15:36:35 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-07 15:36:35 -0700 |
commit | 7129d65df7b02d7412ee5d56debd5a9c094db5ad (patch) | |
tree | 55b551554d6aba9de7fb004c0c250800dfb87611 /source/EditorAttachmentImpl.cpp | |
parent | cde94efdd44553f3f6575ce84b44c6799e1a1425 (diff) |
Changeset: 23 Fix camera view matrix, [WIP] guizmo
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); } |