- Mesh upload support
- LLMesh asset decoding and encoding (inc. LLPhysicsConvex, LLSkin, LLSubMesh) - Query inventory folder by type - onSelectedObject event - fetchInventoryItem command - Fix packing/unpacking of object shape - Time sync with SimulatorViewerTimeMessage - Changed several classes to a .from style rather than setting up in the constructor (exception friendly) - Whole bunch of other improvements - Object building
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import {CommandsBase} from './CommandsBase';
|
||||
import {InventoryFolder} from '../InventoryFolder';
|
||||
import {ChatSourceType, InventoryOfferedEvent, PacketFlags, UUID, Vector3} from '../..';
|
||||
import {AssetType, ChatSourceType, InventoryOfferedEvent, PacketFlags, UUID, Vector3} from '../..';
|
||||
import {InstantMessageDialog} from '../../enums/InstantMessageDialog';
|
||||
import {ImprovedInstantMessageMessage} from '../messages/ImprovedInstantMessage';
|
||||
import {Utils} from '../Utils';
|
||||
import {InventoryType} from '../../enums/InventoryType';
|
||||
import {FolderType} from '../../enums/FolderType';
|
||||
|
||||
export class InventoryCommands extends CommandsBase
|
||||
{
|
||||
@@ -19,8 +21,8 @@ export class InventoryCommands extends CommandsBase
|
||||
{
|
||||
const agentName = this.agent.firstName + ' ' + this.agent.lastName;
|
||||
const im: ImprovedInstantMessageMessage = new ImprovedInstantMessageMessage();
|
||||
|
||||
const folder = this.agent.inventory.findFolderForType(event.type);
|
||||
const folderType = (event.type as unknown) as FolderType;
|
||||
const folder = this.agent.inventory.findFolderForType(folderType);
|
||||
const binary = Buffer.allocUnsafe(16);
|
||||
folder.writeToBuffer(binary, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user