소스 검색

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);