feat: Enhance simulation state management to include StaticMachineEventsSchema
- Updated various modules to accommodate StaticMachineEventsSchema in simulation states. - Modified event handling in addAssetModel, deleteFloorItems, and loadInitialFloorItems to support new event types. - Adjusted type definitions in worldTypes.d.ts to define StaticMachineEventsSchema. - Refactored path management in processCreator and simulation to handle new event types. - Ensured compatibility in selection and manipulation controls for StaticMachine events. - Removed bug that made the other assets not droppable
This commit is contained in:
@@ -240,7 +240,7 @@ const SelectionControls: React.FC = () => {
|
||||
}
|
||||
});
|
||||
|
||||
setSimulationStates((prevEvents: (Types.ConveyorEventsSchema | Types.VehicleEventsSchema)[]) => {
|
||||
setSimulationStates((prevEvents: (Types.ConveyorEventsSchema | Types.VehicleEventsSchema | Types.StaticMachineEventsSchema)[]) => {
|
||||
const updatedEvents = (prevEvents || []).filter(event => event.modeluuid !== selectedMesh.uuid);
|
||||
return updatedEvents;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user