From 3f067e4a8cdd75ce5d6d04b81c72197df46ec490 Mon Sep 17 00:00:00 2001 From: ducphamhong Date: Thu, 24 Feb 2022 14:53:06 +0700 Subject: [PATCH] #123 Fix bug crash after reset layout --- Projects/Editor/Source/Editor/Space/Scene/CSpaceScene.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Projects/Editor/Source/Editor/Space/Scene/CSpaceScene.cpp b/Projects/Editor/Source/Editor/Space/Scene/CSpaceScene.cpp index cedf8d0b9..f32f5c9f7 100644 --- a/Projects/Editor/Source/Editor/Space/Scene/CSpaceScene.cpp +++ b/Projects/Editor/Source/Editor/Space/Scene/CSpaceScene.cpp @@ -306,6 +306,8 @@ namespace Skylicht // register event m_scene->registerEvent("Handles", CHandles::getInstance()); m_scene->registerEvent("Selecting", CSelecting::getInstance()); + + m_scene->updateIndexSearchObject(); } CScene* CSpaceScene::initNullScene()