Skip to content

Commit

Permalink
Merge pull request #6837 from AnalyticalGraphicsInc/fix-oit-picking
Browse files Browse the repository at this point in the history
Fix oit/picking bug
  • Loading branch information
bagnell authored Jul 24, 2018
2 parents c65b907 + e28bdc6 commit f1e58f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Scene/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -1524,10 +1524,6 @@ define([
derivedCommands.logDepth = undefined;
}

if (scene.frameState.passes.pick && !defined(command.pickId)) {
return;
}

if (shadowsEnabled && (command.receiveShadows || command.castShadows)) {
derivedCommands.shadows = ShadowMap.createDerivedCommands(shadowMaps, lightShadowMaps, command, shadowsDirty, context, derivedCommands.shadows);
if (useLogDepth) {
Expand All @@ -1554,6 +1550,10 @@ define([
}
}

if (scene.frameState.passes.pick && !defined(command.pickId)) {
return;
}

derivedCommands.depth = DerivedCommand.createDepthOnlyDerivedCommand(scene, command, context, derivedCommands.depth);
}
}
Expand Down

0 comments on commit f1e58f9

Please sign in to comment.