返回提交历史
Modified
src/services/shipCustomizationsService.ts
+2
-2
Modified
src/types/shipTypes.ts
+1
-1
XFEstudio/SpaceNinjaServer
fix: don't default scale ship decorations to 1 (#603)
ac09fcec
代码差异
2 个文件
+3
-3
@@ -93,7 +93,7 @@ export const handleSetShipDecorations = async (
93
93
Type: placedDecoration.Type,
94
94
Pos: placedDecoration.Pos,
95
95
Rot: placedDecoration.Rot,
96
Scale: placedDecoration.Scale || 1,
96
Scale: placedDecoration.Scale,
97
97
_id: placedDecoration.MoveId
98
98
};
99
99
@@ -129,7 +129,7 @@ export const handleSetShipDecorations = async (
129
129
Type: placedDecoration.Type,
130
130
Pos: placedDecoration.Pos,
131
131
Rot: placedDecoration.Rot,
132
Scale: placedDecoration.Scale || 1,
132
Scale: placedDecoration.Scale,
133
133
_id: decoId
134
134
});
135
135
@@ -71,7 +71,7 @@ export interface IPlacedDecosDatabase {
71
71
Type: string;
72
72
Pos: [number, number, number];
73
73
Rot: [number, number, number];
74
Scale: number;
74
Scale?: number;
75
75
PictureFrameInfo?: IPictureFrameInfo;
76
76
_id: Types.ObjectId;
77
77
}