Added preview window when selecting a camera in the scene

This commit is contained in:
Antoine Pilote
2024-09-04 20:31:43 -04:00
parent e1813870a2
commit e607b99191
9 changed files with 94 additions and 10 deletions

View File

@@ -73,7 +73,7 @@ namespace Nuake
return this->Name;
}
bool Scene::SetName(std::string& newName)
bool Scene::SetName(const std::string& newName)
{
if (newName == "")
return false;
@@ -317,7 +317,6 @@ namespace Nuake
cam = camera.CameraInstance;
cam->Translation = transform.GetGlobalPosition();
break;
}
if (!cam)