Explorar o código

moved initTerrain to makeInstance() instead of make()

Nicolas Cannasse %!s(int64=4) %!d(string=hai) anos
pai
achega
c1ac46c784
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  1. 0 5
      hrt/prefab/terrain/Terrain.hx

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

@@ -539,11 +539,6 @@ class Terrain extends Object3D {
 		ctx.local3d.name = name;
 		ctx.local3d.name = name;
 
 
 		updateInstance(ctx);
 		updateInstance(ctx);
-		return ctx;
-	}
-
-	override function make(ctx:Context):Context {
-		ctx = super.make(ctx);
 		initTerrain(ctx);
 		initTerrain(ctx);
 		return ctx;
 		return ctx;
 	}
 	}