code refactoring
This commit is contained in:
@@ -88,7 +88,10 @@ namespace OpenVulkano
|
||||
virtual void SetCamera(Camera* camera)
|
||||
{
|
||||
this->camera = camera;
|
||||
camera->scene = this;
|
||||
if (!camera->scene)
|
||||
{
|
||||
this->GetRoot()->AddChild(camera->GetRoot());
|
||||
}
|
||||
}
|
||||
|
||||
Camera* GetCamera() const
|
||||
|
||||
Reference in New Issue
Block a user