|
@@ -463,15 +463,19 @@ class World extends Object {
|
|
c.root.visible = c.bounds.inFrustum(ctx.camera.m);
|
|
c.root.visible = c.bounds.inFrustum(ctx.camera.m);
|
|
if( c.root.visible ) {
|
|
if( c.root.visible ) {
|
|
c.lastFrame = ctx.frame;
|
|
c.lastFrame = ctx.frame;
|
|
- if( !c.initialized ) {
|
|
|
|
- c.initialized = true;
|
|
|
|
- initChunkSoil(c);
|
|
|
|
- initChunkElements(c);
|
|
|
|
- }
|
|
|
|
|
|
+ initChunk(c);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ function initChunk( c : WorldChunk ) {
|
|
|
|
+ if( !c.initialized ) {
|
|
|
|
+ c.initialized = true;
|
|
|
|
+ initChunkSoil(c);
|
|
|
|
+ initChunkElements(c);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
#if hxbit
|
|
#if hxbit
|
|
override function customUnserialize(ctx:hxbit.Serializer) {
|
|
override function customUnserialize(ctx:hxbit.Serializer) {
|
|
super.customUnserialize(ctx);
|
|
super.customUnserialize(ctx);
|