Browse Source

Fixed object counts.

Mr.doob 10 months ago
parent
commit
d214ebe0e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      devtools/panel/panel.js

+ 1 - 1
devtools/panel/panel.js

@@ -358,7 +358,7 @@ function renderObject(obj, container, level = 0) {
 
 
 		if (obj.isScene) {
 		if (obj.isScene) {
 			// Add object count for scenes
 			// Add object count for scenes
-			let objectCount = 0;
+			let objectCount = -1;
 			function countObjects(uuid) {
 			function countObjects(uuid) {
 				const object = state.objects.get(uuid);
 				const object = state.objects.get(uuid);
 				if (object) {
 				if (object) {

粤ICP备19079148号