We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46e7647 commit b253edeCopy full SHA for b253ede
packages/engine/Source/Scene/Model/ModelSceneGraph.js
@@ -481,15 +481,7 @@ const scratchComputedTranslation = new Cartesian3();
481
482
function updateComputedModelMatrix2D(sceneGraph, frameState) {
483
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
- ) {
+ if (sceneGraph.hasInstances) {
493
sceneGraph._computedModelMatrix2D = Transforms.basisTo2D(
494
frameState.mapProjection,
495
computedModelMatrix,
0 commit comments