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