@urso/core 0.7.94 → 0.7.95
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
|
@@ -322,7 +322,7 @@ class ModulesObjectsModelsSpine extends ModulesObjectsBaseModel {
|
|
|
322
322
|
if (replaceSlotContents)
|
|
323
323
|
currentSlot.removeChildren(); //todo check if its proxy and reset parent
|
|
324
324
|
|
|
325
|
-
this.addChild(object); //todo make removeChild for addedToSlotObjects
|
|
325
|
+
this.addChild(object, true); //todo make removeChild for addedToSlotObjects
|
|
326
326
|
currentSlot.addChild(object._baseObject);
|
|
327
327
|
Urso.objects.refreshStyles();
|
|
328
328
|
} else {
|
|
@@ -34,8 +34,17 @@ class ModulesScenesPixiWrapper {
|
|
|
34
34
|
|
|
35
35
|
//define renderer
|
|
36
36
|
PIXI.utils.skipHello();
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
const app = new PIXI.Application();
|
|
38
|
+
this.ticker = app.ticker;
|
|
39
|
+
this.ticker.autoStart = false;
|
|
40
|
+
this.ticker.stop();
|
|
41
|
+
|
|
42
|
+
//this._renderer = new PIXI.Renderer({ preserveDrawingBuffer: true, width: 1, height: 1 });
|
|
43
|
+
//document.body.appendChild(this._renderer.view);
|
|
44
|
+
this._renderer = app.renderer;
|
|
45
|
+
document.body.appendChild(app.view);
|
|
46
|
+
|
|
47
|
+
//debugger
|
|
39
48
|
|
|
40
49
|
//root and world
|
|
41
50
|
this._root = new PIXI.Container();
|
|
@@ -286,6 +295,8 @@ class ModulesScenesPixiWrapper {
|
|
|
286
295
|
|
|
287
296
|
this.currentScene.update(deltaTime);
|
|
288
297
|
this.currentScene.render();
|
|
298
|
+
//this._renderer.render(this._root);
|
|
299
|
+
this.ticker.update(deltaTime);
|
|
289
300
|
this._renderer.render(this._root);
|
|
290
301
|
};
|
|
291
302
|
|