From 18b0c0e122f04b840f563862c5c1e4b2934b55c1 Mon Sep 17 00:00:00 2001 From: hnOsmium0001 Date: Sat, 7 May 2022 15:36:35 -0700 Subject: Fix camera view matrix, [WIP] guizmo --- source/EditorAttachmentImpl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/EditorAttachmentImpl.cpp') 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 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(result); } -- cgit v1.2.3-70-g09d2