浏览代码

Fix missing #if editor in Terrain

ShiroSmith 5 年之前
父节点
当前提交
77b2d0f4a5
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 {
 	override function makeInstance( ctx : Context ) : Context {
 		ctx = ctx.clone(this);
 		ctx = ctx.clone(this);
+		#if editor
 		myContext = ctx;
 		myContext = ctx;
+		#end
 
 
 		terrain = new TerrainMesh(ctx.local3d);
 		terrain = new TerrainMesh(ctx.local3d);
 		terrain.tileSize = new h2d.col.Point(tileSizeX, tileSizeY);
 		terrain.tileSize = new h2d.col.Point(tileSizeX, tileSizeY);