clementlandrin пре 3 година
родитељ
комит
639e74dfb0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      hrt/prefab/l3d/HeightMap.hx

+ 1 - 1
hrt/prefab/l3d/HeightMap.hx

@@ -450,7 +450,7 @@ class HeightMapMesh extends h3d.scene.Object {
 
 	function checkTile( ctx : h3d.scene.RenderContext, x : Int, y : Int ) {
 		var t = hmap.getTile(x,y);
-		if( !ctx.camera.frustum.hasBounds(t.bounds) || t.isEmpty() ) {
+		if( t.isEmpty() || !ctx.camera.frustum.hasBounds(t.bounds) ) {
 			if( t.root != null ) t.root.visible = false;
 			return x >= 0 && y >= 0 && x < hmap.sizeX && y < hmap.sizeY;
 		}