@urso/core 0.4.27 → 0.4.28

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.4.27",
3
+ "version": "0.4.28",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -171,13 +171,14 @@ class ModulesObjectsModelsSpine extends Urso.Core.Modules.Objects.BaseModel {
171
171
  if (currentSlot) {
172
172
  object._baseObject.scale.y = -1;
173
173
 
174
- Urso.objects.removeChild(object.parent, object);
174
+ Urso.objects.removeChild(object.parent, object, true);
175
175
 
176
176
  if (replaceSlotContents)
177
177
  currentSlot.removeChildren(); //todo check if its proxy and reset parent
178
178
 
179
179
  object.parent = this; //todo make removeChild for addedToSlotObjects
180
180
  currentSlot.addChild(object._baseObject);
181
+ Urso.objects.refreshStyles();
181
182
  } else {
182
183
  Urso.logger.warn('ModulesObjectsModelsSpine _addToSlot error: no spine slot ' + slotName);
183
184
  }