Skip to content

Commit b253ede

Browse files
committed
cleanup
1 parent 46e7647 commit b253ede

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -481,15 +481,7 @@ const scratchComputedTranslation = new Cartesian3();
481481

482482
function updateComputedModelMatrix2D(sceneGraph, frameState) {
483483
const computedModelMatrix = sceneGraph._computedModelMatrix;
484-
const translation = Matrix4.getTranslation(
485-
computedModelMatrix,
486-
scratchComputedTranslation,
487-
);
488-
489-
if (
490-
!Cartesian3.equals(translation, Cartesian3.ZERO) ||
491-
sceneGraph.hasInstances
492-
) {
484+
if (sceneGraph.hasInstances) {
493485
sceneGraph._computedModelMatrix2D = Transforms.basisTo2D(
494486
frameState.mapProjection,
495487
computedModelMatrix,

0 commit comments

Comments
 (0)