fix: don't default scale of ship decoration to 1

This commit is contained in:
Sainan 2024-12-22 16:25:14 +01:00
parent cbdd1cd0a7
commit 3a1ca5a1e9
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ export const handleSetShipDecorations = async (
Type: placedDecoration.Type,
Pos: placedDecoration.Pos,
Rot: placedDecoration.Rot,
Scale: placedDecoration.Scale || 1,
Scale: placedDecoration.Scale,
_id: placedDecoration.MoveId
};
@ -124,7 +124,7 @@ export const handleSetShipDecorations = async (
Type: placedDecoration.Type,
Pos: placedDecoration.Pos,
Rot: placedDecoration.Rot,
Scale: placedDecoration.Scale || 1,
Scale: placedDecoration.Scale,
_id: decoId
});

View File

@ -70,7 +70,7 @@ export interface IPlacedDecosDatabase {
Type: string;
Pos: [number, number, number];
Rot: [number, number, number];
Scale: number;
Scale?: number;
PictureFrameInfo?: IPictureFrameInfo;
_id: Types.ObjectId;
}