Remove copy method from drawable
This commit is contained in:
@@ -125,10 +125,9 @@ namespace OpenVulkano::Scene
|
||||
for (auto& drawable : drawables)
|
||||
{
|
||||
Scene* drawableScene = drawable->GetScene();
|
||||
if(drawableScene && drawableScene != scene)
|
||||
if(drawableScene && drawableScene != scene) [[unlikely]]
|
||||
{
|
||||
Logger::SCENE->warn("Drawable is already associated with a scene! Creating copy.");
|
||||
drawable = drawable->Copy();
|
||||
throw std::runtime_error("Drawable is already associated with a scene! Creating copy.");
|
||||
}
|
||||
drawable->SetScene(scene);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user