mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Prefab window no longer crashing
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user