Browse Source

Bugfix: Properly prune destroyed scene objects when returning the current selection

BearishSun 6 years ago
parent
commit
a5b71495f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/EditorCore/Scene/BsSelection.cpp

+ 1 - 1
Source/EditorCore/Scene/BsSelection.cpp

@@ -235,7 +235,7 @@ namespace bs
 		bool anyDestroyed = false;
 		bool anyDestroyed = false;
 		for (auto& SO : sceneObjects)
 		for (auto& SO : sceneObjects)
 		{
 		{
-			if (!SO.isDestroyed(true))
+			if (SO.isDestroyed(true))
 			{
 			{
 				anyDestroyed = true;
 				anyDestroyed = true;
 				break;
 				break;