diff --git a/lib/classes/ObjectStoreLite.ts b/lib/classes/ObjectStoreLite.ts index c1043041..57784b84 100644 --- a/lib/classes/ObjectStoreLite.ts +++ b/lib/classes/ObjectStoreLite.ts @@ -1215,6 +1215,19 @@ export class ObjectStoreLite implements IObjectStore results.push(parent); } } + if (go.ParentID) + { + let objects = this.objectsByParent.get(go.ParentID) + if (!objects?.includes(localID)) + { + if (objects === undefined) + { + objects = []; + } + objects.push(localID); + this.objectsByParent.set(go.ParentID, objects); + } + } } catch (error) { diff --git a/package-lock.json b/package-lock.json index 827145a5..a5a5872d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@caspertech/node-metaverse", - "version": "0.7.20", + "version": "0.7.21", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@caspertech/node-metaverse", - "version": "0.7.20", + "version": "0.7.21", "license": "MIT", "dependencies": { "@caspertech/llsd": "^1.0.5", diff --git a/package.json b/package.json index 415ce8c1..ded45334 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@caspertech/node-metaverse", - "version": "0.7.20", + "version": "0.7.21", "description": "A node.js interface for Second Life.", "main": "dist/lib/index.js", "types": "dist/lib/index.d.ts",