@urso/core 0.7.43 → 0.7.45

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": "@urso/core",
3
- "version": "0.7.43",
3
+ "version": "0.7.45",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -256,6 +256,7 @@ class ModulesAssetsService {
256
256
  const savedFont = PIXI.BitmapFont.available[fontData.bitmapFont.font];
257
257
 
258
258
  if (savedFont) {
259
+ Urso.logger.warn(`bitmapFont ${fontData.bitmapFont.font} was rewritten with key ${fontName}`);
259
260
  PIXI.BitmapFont.available[fontName] = savedFont;
260
261
  delete PIXI.BitmapFont.available[fontData.bitmapFont.font];
261
262
  }
@@ -68,7 +68,7 @@ class ModulesScenesService {
68
68
  const result = Urso.objects.create(objectToCreate, parent, doNotRefreshStylesFlag);
69
69
 
70
70
  //components create
71
- if (newTemplatePart.components) {
71
+ if (newTemplatePart.components && newTemplatePart.components.length > 0) {
72
72
  newTemplatePart.components.forEach(component => component.create());
73
73
  this._currentSceneTemplate.components = Urso.helper.mergeArrays(this._currentSceneTemplate.components, newTemplatePart.components);
74
74
  }