ohzi-core 12.4.0 → 12.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
- "version": "12.4.0",
3
+ "version": "12.5.0",
4
4
  "description": "OHZI Interactive Core Library",
5
5
  "source": "src/index.js",
6
6
  "module": "build/index.mjs",
@@ -13,6 +13,7 @@ class AbstractScene extends Scene
13
13
 
14
14
  this.name = name;
15
15
 
16
+ this.initialized = false;
16
17
  this.is_loaded = false;
17
18
  this.is_high_loaded = false;
18
19
 
@@ -32,11 +33,15 @@ class AbstractScene extends Scene
32
33
 
33
34
  init()
34
35
  {
36
+ this.initialized = true;
35
37
  }
36
38
 
37
39
  load()
38
40
  {
39
- this.init();
41
+ if (!this.initialized)
42
+ {
43
+ this.init();
44
+ }
40
45
 
41
46
  this.set_loading_state(this.loading_states.regular);
42
47
  this.current_loading_state.load();
@@ -92,6 +97,8 @@ class AbstractScene extends Scene
92
97
  });
93
98
 
94
99
  // AvatarSystem.component_container.component_instancer.data_texture.data = new Float32Array(4);
100
+
101
+ this.initialized = false;
95
102
  }
96
103
 
97
104
  dispose()
@@ -110,6 +117,8 @@ class AbstractScene extends Scene
110
117
  }
111
118
  });
112
119
  // AvatarSystem.component_container.component_instancer.data_texture.data = new Float32Array(4);
120
+
121
+ this.initialized = false;
113
122
  }
114
123
 
115
124
  set_assets(scene_objects, scene_textures, scene_sounds, custom_loaders, custom_compilators, custom_data)