فهرست منبع

only garbage invisible chunks

ncannasse 8 سال پیش
والد
کامیت
784a762d2a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      h3d/scene/World.hx

+ 1 - 1
h3d/scene/World.hx

@@ -142,7 +142,7 @@ class World extends Object {
 	public function garbage() {
 		var last : WorldChunk = null;
 		for( c in allChunks )
-			if( c.initialized && (last == null || c.lastFrame < last.lastFrame) )
+			if( c.initialized && !c.root.visible && (last == null || c.lastFrame < last.lastFrame) )
 				last = c;
 		if( last != null )
 			cleanChunk(last);