Clear the render list if not destroying the camera

This commit is contained in:
Richard Davey 2021-01-07 12:30:46 +00:00
parent 3db77c7a10
commit 5481a64023

View file

@ -557,6 +557,10 @@ var CameraManager = new Class({
{
cameras[index].destroy();
}
else
{
cameras[index].renderList = [];
}
cameras.splice(index, 1);