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

Merged
Sainan merged 1 commits from fix-scale into main 2024-12-22 11:34:04 -08:00
2 changed files with 3 additions and 3 deletions

View File

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

View File

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