From 4dee0efdd3b9619f029ef78dac71481d4b867bf0 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Fri, 13 Jan 2017 09:12:49 +1300 Subject: [PATCH] Use more reliable Clara.io API parameters --- scripts/system/html/js/marketplacesInject.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/system/html/js/marketplacesInject.js b/scripts/system/html/js/marketplacesInject.js index bce6a0e5d9..94e2a68460 100644 --- a/scripts/system/html/js/marketplacesInject.js +++ b/scripts/system/html/js/marketplacesInject.js @@ -163,9 +163,9 @@ // Reference: https://clara.io/learn/sdk/api/export //var XMLHTTPREQUEST_URL = "https://clara.io/api/scenes/{uuid}/export/fbx?zip=true¢erScene=true&alignSceneGround=true&fbxUnit=Meter&fbxVersion=7&fbxEmbedTextures=true&imageFormat=WebGL"; - // 12 Jan 21017: Remove "¢erScene=true" option because it causes the Clara.io site to not generate zip files - // for some models (e.g., "Julia" and "Ur Draug"). - var XMLHTTPREQUEST_URL = "https://clara.io/api/scenes/{uuid}/export/fbx?zip=true&alignSceneGround=true&fbxUnit=Meter&fbxVersion=7&fbxEmbedTextures=true&imageFormat=WebGL"; + // 13 Jan 2017: Specify FBX version 5 and remove some options in order to make Clara.io site more likely to + // be successful in generating zip files. + var XMLHTTPREQUEST_URL = "https://clara.io/api/scenes/{uuid}/export/fbx?fbxUnit=Meter&fbxVersion=5&fbxEmbedTextures=true&imageFormat=WebGL"; var uuid = location.href.match(/\/view\/([a-z0-9\-]*)/)[1]; var url = XMLHTTPREQUEST_URL.replace("{uuid}", uuid);