diff --git a/herosaver.js b/herosaver.js index 03a6159..7db03b8 100644 --- a/herosaver.js +++ b/herosaver.js @@ -197,7 +197,7 @@ function init() { character_area.append(labeljson); character_area.css("right", 0); - stl.click(function(e) { + /*stl.click(function(e) { e.preventDefault(); var exporter = new RK.STLExporter(); var objs = CK.character.children; @@ -240,7 +240,7 @@ function init() { var name = CK.data.meta.character_name name = name === "" ? "unnamed" : name download(stlString, name + '.stl', 'application/sla'); - }); + });*/ stl_base.click(function(e) { e.preventDefault(); var exporter = new RK.STLExporter(); diff --git a/herosaver.min.js b/herosaver.min.js index c84fa0b..1df0821 100644 --- a/herosaver.min.js +++ b/herosaver.min.js @@ -1 +1 @@ -function init(){!function(){var e,t;RK.STLExporter=function(){},RK.STLExporter.prototype={constructor:THREE.STLExporter,parse:(e=new THREE.Vector3,t=new THREE.Matrix3,function(n){console.log(n);var r="";for(var o in r+="solid exported\n",n)n[o].traverse(function(n){if(n instanceof RK.Mesh){if(0==n.visible)return;var o=n.geometry,a=n.matrixWorld,i=n.skeleton,s=n;if(o instanceof RK.BufferGeometry){var c=o.clone();o=(new RK.Geometry).fromBufferGeometry(o);for(var l=c.getAttribute("skinIndex"),d=c.getAttribute("skinWeight"),p=c.getAttribute("morphTarget0"),f=0;void 0!==p;)f++,p=c.getAttribute("morphTarget"+f);if(void 0!==l){o.skinIndices=[],o.skinWeights=[],o.morphTargets=[];for(var u=0;u").css({"margin-left":"20px","font-size":"1.4em",color:"rgba(255, 255, 255, 0.8)",cursor:"pointer"}).text("Export Figure"),o=jQuery("").css({"margin-left":"20px","font-size":"1.4em",color:"rgba(255, 255, 255, 0.8)",cursor:"pointer"}).text("Save JSON"),a=jQuery("").attr({type:"file",id:"ljson"}).css({display:"none"}).text("Load JSON"),i=jQuery("").css({"margin-left":"20px","font-size":"1.4em",color:"rgba(255, 255, 255, 0.8)",cursor:"pointer"}).text("Save JSON"),a=jQuery("").attr({type:"file",id:"ljson"}).css({display:"none"}).text("Load JSON"),i=jQuery("