Skip to content

Commit

Permalink
Fix model not scaling when loading using XKTLoaderPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlal99 committed Oct 14, 2024
1 parent 9a07679 commit bd3b791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/viewer/scene/model/SceneModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,8 @@ export class SceneModel extends Component {
math.quaternionToRotationMat4(this._quaternion, this._worldRotationMatrix);
math.conjugateQuaternion(this._quaternion, this._conjugateQuaternion);
math.quaternionToRotationMat4(this._conjugateQuaternion, this._worldRotationMatrixConjugate);
math.scaleMat4v(this._scale, this._worldRotationMatrix);
math.scaleMat4v(this._scale, this._worldRotationMatrixConjugate);
this._matrix.set(this._worldRotationMatrix);
math.translateMat4v(this._position, this._matrix);
this._matrixDirty = false;
Expand Down

0 comments on commit bd3b791

Please sign in to comment.