Skip to content

Commit

Permalink
Backwards compatibility with Cesium 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Limper committed Dec 9, 2015
1 parent c566172 commit 503f087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Scene/Model.js
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,8 @@ define([
if (buffers.hasOwnProperty(id)) {
var buffer = buffers[id];

if (id === 'CESIUM_binary_glTF' || id === 'binary_glTF') {
// The 'KHR_binary_glTF' check is for backwards compatibility with Cesium 1.15.
if (id === 'CESIUM_binary_glTF' || id === 'binary_glTF' || id === 'KHR_binary_glTF') {
// Buffer is the binary glTF file itself that is already loaded
var loadResources = model._loadResources;
loadResources.buffers[id] = model._cachedGltf.bgltf;
Expand Down

0 comments on commit 503f087

Please sign in to comment.