@luminocity/lemonate-engine 26.4.6 → 26.4.8
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/dist/index.d.ts +2 -0
- package/dist/lemonate.es.js +17 -6
- package/dist/lemonate.js +102 -88
- package/dist/lemonate.min.js +7 -7
- package/dist/lemonate.umd.js +18 -5
- package/dist/player.zip +0 -0
- package/package.json +2 -2
package/dist/lemonate.umd.js
CHANGED
|
@@ -11407,7 +11407,7 @@
|
|
|
11407
11407
|
}
|
|
11408
11408
|
}
|
|
11409
11409
|
|
|
11410
|
-
var engine$1 = "26.4.
|
|
11410
|
+
var engine$1 = "26.4.8";
|
|
11411
11411
|
var bullet = "3.26";
|
|
11412
11412
|
var lua = "5.4.3";
|
|
11413
11413
|
var packageVersionInfo = {
|
|
@@ -71109,6 +71109,11 @@
|
|
|
71109
71109
|
const droppedItemIsDescendantOfThis = this.isDescendantOf(sgDroppedItem);
|
|
71110
71110
|
if (!droppedItemIsDescendantOfThis) {
|
|
71111
71111
|
this.engine.moveTreeItemsToNewParent([droppedItem.id], this.getId(), undefined, destinationSubNode);
|
|
71112
|
+
// in case the item is dropped to a subnode, its parenting needs to be updated
|
|
71113
|
+
if (destinationSubNode) {
|
|
71114
|
+
sgDroppedItem.updateParenting();
|
|
71115
|
+
sgDroppedItem.updateBoxHelper();
|
|
71116
|
+
}
|
|
71112
71117
|
return true;
|
|
71113
71118
|
}
|
|
71114
71119
|
}
|
|
@@ -117589,10 +117594,16 @@
|
|
|
117589
117594
|
.map(result => {
|
|
117590
117595
|
const item = result.item;
|
|
117591
117596
|
const container = item.getContainer();
|
|
117592
|
-
|
|
117593
|
-
|
|
117594
|
-
|
|
117595
|
-
|
|
117597
|
+
// in case we are moving to a new non-subnode parent, we want to remember the old
|
|
117598
|
+
// world matrix to compensate for the reparenting so the object stays in its position
|
|
117599
|
+
// in case we move between subnodes, we want to keep the local transform, so the object
|
|
117600
|
+
// actually moves
|
|
117601
|
+
if (!destinationSubNode) {
|
|
117602
|
+
container.updateWorldMatrix(true, false);
|
|
117603
|
+
item.block.moveData = {
|
|
117604
|
+
oldWorldMatrix: container.matrixWorld.clone(),
|
|
117605
|
+
};
|
|
117606
|
+
}
|
|
117596
117607
|
return item.block;
|
|
117597
117608
|
});
|
|
117598
117609
|
let i = index;
|
|
@@ -117676,6 +117687,8 @@
|
|
|
117676
117687
|
exports.MaxLayerCount = MaxLayerCount;
|
|
117677
117688
|
exports.Player = Player;
|
|
117678
117689
|
exports.Renderer = Renderer;
|
|
117690
|
+
exports.SceneGraph = SceneGraph;
|
|
117691
|
+
exports.SceneGraphCollection = SceneGraphCollection;
|
|
117679
117692
|
exports.SgItem = SgItem;
|
|
117680
117693
|
exports.SgItemSubNode = SgItemSubNode;
|
|
117681
117694
|
exports.Shortcuts = Shortcuts;
|
package/dist/player.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminocity/lemonate-engine",
|
|
3
|
-
"version": "26.4.
|
|
3
|
+
"version": "26.4.8",
|
|
4
4
|
"productName": "Lemonate Engine",
|
|
5
5
|
"repository": "https://codeberg.org/Luminocity/lemonate-engine",
|
|
6
6
|
"homepage": "https://lemonate.io",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@gltf-transform/core": "^4.0.1",
|
|
45
45
|
"@gltf-transform/extensions": "^4.0.1",
|
|
46
|
-
"@luminocity/lemonate-gateway": "8.2.
|
|
46
|
+
"@luminocity/lemonate-gateway": "8.2.32",
|
|
47
47
|
"@msgpack/msgpack": "3.1.1",
|
|
48
48
|
"@recast-navigation/three": "^0.42.0",
|
|
49
49
|
"@sparkjsdev/spark": "^0.1.10",
|