Skip to content

Commit

Permalink
Make exporter separate objects
Browse files Browse the repository at this point in the history
  • Loading branch information
init-ok committed Dec 29, 2013
1 parent ebc04b0 commit 57a088d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sketchfab-dl-script.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ function OBJforGeometry(geom) {
};

var vertexOffset = 0;
var numUndefinedObjNames = 0;
function OBJforGeometryInfo(info) {
if (!info)
return;
var obj = '#name: ' + info.name + '\n';
var obj = 'o ' + (info.name ? info.name : ++numUndefinedObjNames) + '\n';
for (var i = 0; i < info.vertices.length; i += 3) {
obj += 'v ';
for (j = 0; j < 3; ++j) {
Expand Down Expand Up @@ -138,9 +139,8 @@ window.dlOBJ = function() {
}
downloadLink.click();
};

var ul = getElementByXpath('//*[@id="main-menu"]/ul');
var li=document.createElement("li");
li.innerHTML='<a class="order-model" id="downloadOBJ"><span>Download .OBJ</span></a>';
li.addEventListener ("click", dlOBJ , false);
ul.appendChild(li);
ul.appendChild(li);

4 comments on commit 57a088d

@Nico-tlms
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me too it does not work I would really

@s0ulessb0nes
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is no longer working :(

@yazancash
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use RigModels Sketchfab Ripper. it works perfectly.

@Alexclavijo97
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use RigModels Sketchfab Ripper. it works perfectly.

yo quiero usarlo pero no se como pagar con bit, nunca he usado eso. me puedes ayudar?

Please sign in to comment.