diff options
author | hnOsmium0001 <[email protected]> | 2022-05-07 15:36:35 -0700 |
---|---|---|
committer | hnOsmium0001 <[email protected]> | 2022-05-07 15:36:35 -0700 |
commit | 18b0c0e122f04b840f563862c5c1e4b2934b55c1 (patch) | |
tree | dfe167f5829a8c238584ef123691bc88f54251b3 /source/EditorAttachmentImpl.cpp | |
parent | d98a4159d86406a47628aa58bae9f3308fea4fd0 (diff) |
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); } |