Browse Source

Fix missing #if editor in Terrain

ShiroSmith 5 năm trước cách đây
mục cha
commit
77b2d0f4a5
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      hrt/prefab/terrain/Terrain.hx

+ 2 - 0
hrt/prefab/terrain/Terrain.hx

@@ -497,7 +497,9 @@ class Terrain extends Object3D {
 
 	override function makeInstance( ctx : Context ) : Context {
 		ctx = ctx.clone(this);
+		#if editor
 		myContext = ctx;
+		#end
 
 		terrain = new TerrainMesh(ctx.local3d);
 		terrain.tileSize = new h2d.col.Point(tileSizeX, tileSizeY);