Ver Fonte

Disabling HierarchicalWorld loadingQueue.

clementlandrin há 1 ano atrás
pai
commit
b5ad6cca5e
1 ficheiros alterados com 6 adições e 4 exclusões
  1. 6 4
      h3d/scene/HierarchicalWorld.hx

+ 6 - 4
h3d/scene/HierarchicalWorld.hx

@@ -103,11 +103,13 @@ class HierarchicalWorld extends Object {
 	}
 
 	function subdivide() {
-		if ( !loading ) {
-			loading = true;
-			loadingQueue.insert(0, subdivide);
+		if ( subdivided )
 			return;
-		}
+		// if ( !loading ) {
+		// 	loading = true;
+		// 	loadingQueue.insert(0, subdivide);
+		// 	return;
+		// }
 		loading = false;
 		subdivided = true;
 		var childSize = data.size >> 1;