Ensure we deselect objects correctly
This commit is contained in:
@@ -201,13 +201,13 @@ export class RegionCommands extends CommandsBase
|
||||
SessionID: this.circuit.sessionID
|
||||
};
|
||||
deselectObject.ObjectData = [];
|
||||
const uuidMap: { [key: string]: GameObject } = {};
|
||||
const idMap: { [key: number]: GameObject } = {};
|
||||
for (const obj of objects)
|
||||
{
|
||||
const uuidStr = obj.FullID.toString();
|
||||
if (!uuidMap[uuidStr])
|
||||
const localID = obj.ID;
|
||||
if (!idMap[localID])
|
||||
{
|
||||
uuidMap[uuidStr] = obj;
|
||||
idMap[localID] = obj;
|
||||
deselectObject.ObjectData.push({
|
||||
ObjectLocalID: obj.ID
|
||||
});
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@caspertech/node-metaverse",
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.13",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@caspertech/node-metaverse",
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.13",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@caspertech/llsd": "^1.0.5",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@caspertech/node-metaverse",
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.13",
|
||||
"description": "A node.js interface for Second Life.",
|
||||
"main": "dist/lib/index.js",
|
||||
"types": "dist/lib/index.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user