fix seeding in framed settings
This commit is contained in:
parent
4182de3349
commit
5082e552cd
1 changed files with 14 additions and 12 deletions
|
|
@ -2022,7 +2022,7 @@ self.kiri.license = exports.LICENSE;
|
|||
for (var i=0; i<files.length; i++) {
|
||||
var reader = new FileReader(),
|
||||
lower = files[i].name.toLowerCase(),
|
||||
israw = lower.indexOf(".raw") > 0,
|
||||
israw = lower.indexOf(".raw") > 0 || lower.indexOf('.') < 0,
|
||||
isstl = lower.indexOf(".stl") > 0,
|
||||
issvg = lower.indexOf(".svg") > 0,
|
||||
isgcode = lower.indexOf(".gcode") > 0 || lower.indexOf(".nc") > 0;
|
||||
|
|
@ -3820,10 +3820,11 @@ self.kiri.license = exports.LICENSE;
|
|||
|
||||
function checkSeed(ondone) {
|
||||
// skip sample object load in onshape (or any script postload)
|
||||
if (!SDB[SEED] && !SETUP.s) {
|
||||
if (!SDB[SEED]) {
|
||||
SDB[SEED] = new Date().getTime();
|
||||
if (!SETUP.s) {
|
||||
loadSTL("/obj/cube.stl", function(vert) {
|
||||
CATALOG.putFile("sample cube.stl", vert);
|
||||
SDB[SEED] = new Date().getTime();
|
||||
platformComputeMaxZ();
|
||||
SPACE.view.home();
|
||||
setTimeout(saveWorkspace,500);
|
||||
|
|
@ -3832,6 +3833,7 @@ self.kiri.license = exports.LICENSE;
|
|||
});
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue