Fixed game engine not recompiling + improved prefab instancing from TB

This commit is contained in:
antopilo
2024-12-02 00:12:42 -05:00
parent d93d69d059
commit 5b529bd97d
2 changed files with 6 additions and 7 deletions

View File

@@ -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);