Skip to content

Commit abe09cb

Browse files
committed
remove uneeded change
1 parent a955a50 commit abe09cb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,12 @@ const scratchComputedTranslation = new Cartesian3();
481481

482482
function updateComputedModelMatrix2D(sceneGraph, frameState) {
483483
const computedModelMatrix = sceneGraph._computedModelMatrix;
484-
if (sceneGraph.hasInstances) {
484+
const translation = Matrix4.getTranslation(
485+
computedModelMatrix,
486+
scratchComputedTranslation,
487+
);
488+
489+
if (!Cartesian3.equals(translation, Cartesian3.ZERO)) {
485490
sceneGraph._computedModelMatrix2D = Transforms.basisTo2D(
486491
frameState.mapProjection,
487492
computedModelMatrix,

0 commit comments

Comments
 (0)