Skip to content

Commit a066072

Browse files
author
Hannah
authored
Merge pull request #7206 from AnalyticalGraphicsInc/fix-model-test
Update gltf-pipeline and fix model test
2 parents b98e132 + 586a20a commit a066072

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Change Log
2222
* Fixed a crash when using `BingMapsGeocoderService` [#7143](https://github.com/AnalyticalGraphicsInc/cesium/issues/7143)
2323
* Fixed entity visibility issue related to setting an entity show property and altering or adding entity geometry [#7156](https://github.com/AnalyticalGraphicsInc/cesium/pull/7156)
2424
* Fixed accuracy of rotation matrix generated by `VelocityOrientationProperty` [#6641](https://github.com/AnalyticalGraphicsInc/cesium/pull/6641)
25+
* Fixed incorrect rendering of models using the `KHR_materials_common` lights extension. [#7206](https://github.com/AnalyticalGraphicsInc/cesium/pull/7206)
2526
* Fixed clipping plane crash when adding a plane to an empty collection. [#7168](https://github.com/AnalyticalGraphicsInc/cesium/pull/7168)
2627
* Fixed texture coordinate calculation for polygon entities with `perPositionHeight` [#7188](https://github.com/AnalyticalGraphicsInc/cesium/pull/7188)
2728
* Fixed clipping planes on tilesets not taking into account the tileset model matrix. [#7182](https://github.com/AnalyticalGraphicsInc/cesium/pull/7182)

Source/ThirdParty/GltfPipeline/updateVersion.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,8 @@ define([
853853
(!defined(node.translation) || Cartesian3.fromArray(node.translation).equals(Cartesian3.ZERO)) &&
854854
(!defined(node.scale) || Cartesian3.fromArray(node.scale).equals(new Cartesian3(1.0, 1.0, 1.0))) &&
855855
(!defined(node.rotation) || Cartesian4.fromArray(node.rotation).equals(new Cartesian4(0.0, 0.0, 0.0, 1.0))) &&
856-
(!defined(node.matrix) || Matrix4.fromColumnMajorArray(node.matrix).equals(Matrix4.IDENTITY));
856+
(!defined(node.matrix) || Matrix4.fromColumnMajorArray(node.matrix).equals(Matrix4.IDENTITY)) &&
857+
!defined(node.extensions) && !defined(node.extras);
857858
}
858859

859860
function deleteNode(gltf, nodeId) {

Specs/Scene/ModelSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2080,7 +2080,7 @@ defineSuite([
20802080
expect(scene).toRender([0, 0, 0, 255]);
20812081
m.show = true;
20822082
m.zoomTo();
2083-
expect(scene).toRender([51, 51, 51, 255]); // Cesium has minimum lighting
2083+
expect(scene).toRender([0, 0, 0, 255]);
20842084
m.show = false;
20852085

20862086
primitives.remove(m);

0 commit comments

Comments
 (0)