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 a955a50 commit abe09cbCopy full SHA for abe09cb
packages/engine/Source/Scene/Model/ModelSceneGraph.js
@@ -481,7 +481,12 @@ const scratchComputedTranslation = new Cartesian3();
481
482
function updateComputedModelMatrix2D(sceneGraph, frameState) {
483
const computedModelMatrix = sceneGraph._computedModelMatrix;
484
- if (sceneGraph.hasInstances) {
+ const translation = Matrix4.getTranslation(
485
+ computedModelMatrix,
486
+ scratchComputedTranslation,
487
+ );
488
+
489
+ if (!Cartesian3.equals(translation, Cartesian3.ZERO)) {
490
sceneGraph._computedModelMatrix2D = Transforms.basisTo2D(
491
frameState.mapProjection,
492
computedModelMatrix,
0 commit comments