From fbf80cc2beccc8060b9c944aa0ad8f4b78b0f73f Mon Sep 17 00:00:00 2001 From: Dan Bagnell Date: Mon, 19 Mar 2018 14:25:41 -0400 Subject: [PATCH 1/2] Fix classification inversion in vector tiles. --- Source/Scene/Vector3DTilePrimitive.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Scene/Vector3DTilePrimitive.js b/Source/Scene/Vector3DTilePrimitive.js index 0b850231013b..112035c91107 100644 --- a/Source/Scene/Vector3DTilePrimitive.js +++ b/Source/Scene/Vector3DTilePrimitive.js @@ -1042,9 +1042,8 @@ define([ var commandList = frameState.commandList; var commandLength = commands.length; var i; - var command; for (i = 0; i < commandLength; ++i) { - command = commands[i]; + var command = commands[i]; command.pass = pass; commandList.push(command); } @@ -1055,9 +1054,7 @@ define([ commandLength = commandsIgnoreShow.length; for (i = 0; i < commandLength; ++i) { - command = commandsIgnoreShow[i]; - command.pass = pass; - commandList.push(command); + commandList.push(commandsIgnoreShow[i]); } } From 73580d344b04aa6c4ba9899d43334f39872847f5 Mon Sep 17 00:00:00 2001 From: Dan Bagnell Date: Mon, 19 Mar 2018 14:28:01 -0400 Subject: [PATCH 2/2] Update CHANGES.md. --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index c0f2c80ef5ce..4dca69d8ef9c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -26,6 +26,7 @@ Change Log * Fixed improper zoom during model load failure. [#6305](https://github.com/AnalyticalGraphicsInc/cesium/pull/6305) * Fixed model loading failure when containing unused materials. [6315](https://github.com/AnalyticalGraphicsInc/cesium/pull/6315) * Fixed default value of `alphaCutoff` in glTF models. [#6346](https://github.com/AnalyticalGraphicsInc/cesium/pull/6346) +* Fixed rendering vector tiles when using `invertClassification`. [#6349](https://github.com/AnalyticalGraphicsInc/cesium/pull/6349) ### 1.43 - 2018-03-01