File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
base-components/NormalComponent Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1422,13 +1422,8 @@ export class NormalComponent<
14221422 const rotationOffset = rotation3 . parse ( {
14231423 x : 0 ,
14241424 y : 0 ,
1425- z :
1426- typeof sourceRotationOffset === "number"
1427- ? sourceRotationOffset
1428- : 0 ,
1429- ...( typeof sourceRotationOffset === "object"
1430- ? sourceRotationOffset
1431- : { } ) ,
1425+ z : typeof sourceRotationOffset === "number" ? sourceRotationOffset : 0 ,
1426+ ...( typeof sourceRotationOffset === "object" ? sourceRotationOffset : { } ) ,
14321427 } )
14331428
14341429 const positionOffset = point3 . parse ( {
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ export class CadModel extends PrimitiveComponent<typeof cadmodelProps> {
4444 const accumulatedRotation =
4545 ( decomposedTransform . rotation . angle * 180 ) / Math . PI
4646
47- const sourceRotationOffset =
48- props . pcbRotationOffset ?? props . rotationOffset
47+ const sourceRotationOffset = props . pcbRotationOffset ?? props . rotationOffset
4948 const rotationOffset = rotation3 . parse ( { x : 0 , y : 0 , z : 0 } )
5049 if ( typeof sourceRotationOffset === "number" ) {
5150 rotationOffset . z = Number ( sourceRotationOffset )
You can’t perform that action at this time.
0 commit comments