Skip to content

Commit 46e7647

Browse files
committed
cleanup
1 parent fdb68e1 commit 46e7647

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

packages/engine/Source/Scene/Model/ModelDrawCommands.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,7 @@ ModelDrawCommands.createCommandBoundingSphere = function (
274274
);
275275
instanceBoundingSpheres.push(boundingSphere);
276276
}
277-
const combinedBoundingSphere = BoundingSphere.fromBoundingSpheres(
278-
instanceBoundingSpheres,
279-
result,
280-
);
281-
return combinedBoundingSphere;
277+
return BoundingSphere.fromBoundingSpheres(instanceBoundingSpheres, result);
282278
}
283279

284280
return BoundingSphere.transform(

packages/engine/Source/Scene/Model/ModelSceneGraph.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ function ModelSceneGraph(options) {
155155

156156
// Model matrix in 2D without axis correction, etc.
157157
this._modelMatrix2D = Matrix4.clone(Matrix4.IDENTITY);
158-
this._inverseModelMatrix2D = Matrix4.clone(Matrix4.IDENTITY);
159158

160159
this._axisCorrectionMatrix = Matrix4.clone(Matrix4.IDENTITY);
161160

@@ -529,13 +528,8 @@ function computeModelMatrix2D(sceneGraph, frameState) {
529528
modelMatrix,
530529
sceneGraph._modelMatrix2D,
531530
);
532-
sceneGraph._inverseModelMatrix2D = Matrix4.inverseTransformation(
533-
sceneGraph._modelMatrix2D,
534-
sceneGraph._inverseModelMatrix2D,
535-
);
536531
} else {
537532
sceneGraph._modelMatrix2D = Matrix4.IDENTITY;
538-
sceneGraph._inverseModelMatrix2D = Matrix4.IDENTITY;
539533
}
540534
}
541535

0 commit comments

Comments
 (0)