Prefab window no longer crashing

This commit is contained in:
antopilo
2024-12-01 02:10:31 -05:00
parent c8aa609ab1
commit 699375f1a7
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,8 @@
using namespace Nuake;
PrefabEditorWindow::PrefabEditorWindow(Ref<Prefab> inPrefab) :
prefab(inPrefab)
prefab(inPrefab),
SelectionPanel(CreateScope<EditorSelectionPanel>(Selection))
{
const Vector2 defaultSize = Vector2{ 640, 360 };
viewportFramebuffer = CreateRef<FrameBuffer>(true, defaultSize);
@@ -50,7 +51,6 @@ PrefabEditorWindow::PrefabEditorWindow(Ref<Prefab> inPrefab) :
previewLight.SetCastShadows(true);
previewLight.SyncDirectionWithSky = true;
previewLight.Strength = 5.5f;
}
void PrefabEditorWindow::Update(float ts)

View File

@@ -36,7 +36,7 @@ private:
bool isRenaming;
bool isInitialized = false;
EditorSelectionPanel* SelectionPanel;
Scope<EditorSelectionPanel> SelectionPanel;
EditorSelection Selection;
Nuake::Entity QueueDeletion;
ImGuizmo::OPERATION CurrentOperation = ImGuizmo::TRANSLATE;