diff --git a/Editor/src/Windows/EditorInterface.cpp b/Editor/src/Windows/EditorInterface.cpp index fe162454..0fbd576d 100644 --- a/Editor/src/Windows/EditorInterface.cpp +++ b/Editor/src/Windows/EditorInterface.cpp @@ -356,7 +356,7 @@ namespace Nuake { auto project = Engine::GetProject(); auto& scriptingEngine = ScriptingEngineNet::Get(); const std::string& assemblyPath = scriptingEngine.GetGameAssemblyPath(project); - if (FileSystem::FileExists(assemblyPath) && FileSystem::GetFile(assemblyPath)->GetHasBeenModified()) + if (FileSystem::FileExists(assemblyPath)) { this->errors = ScriptingEngineNet::Get().BuildProjectAssembly(Engine::GetProject()); FileSystem::GetFile(assemblyPath)->SetHasBeenModified(false); diff --git a/Nuake/src/Scene/Systems/QuakeMapBuilder.cpp b/Nuake/src/Scene/Systems/QuakeMapBuilder.cpp index ccc92063..b5e50d3b 100644 --- a/Nuake/src/Scene/Systems/QuakeMapBuilder.cpp +++ b/Nuake/src/Scene/Systems/QuakeMapBuilder.cpp @@ -213,13 +213,12 @@ namespace Nuake { } else if(!pointEntity->Prefab.empty()) { - auto& prefabComponent = currentNonWorldEntity.AddComponent(); + //auto& prefabComponent = currentNonWorldEntity.AddComponent(); Ref prefab = Prefab::InstanceInScene(pointEntity->Prefab, m_Scene); - - prefabComponent.SetPrefab(prefab); - prefabComponent.isInitialized = true; - currentNonWorldEntity.AddChild(prefabComponent.PrefabInstance->Root); - currentNonWorldEntity.GetComponent().SetLocalPosition(brushLocalPosition); + //prefabComponent.SetPrefab(prefab); + //prefabComponent.isInitialized = true; + currentNonWorldEntity.AddChild(prefab->Root); + //prefab->Root.GetComponent().SetLocalPosition(brushLocalPosition); //for (auto& e : prefabComponent.PrefabInstance->Entities) //{