Commit c70549dd authored by lixiaoyi's avatar lixiaoyi

删除打印代码

parent ccc4783e
......@@ -199,7 +199,6 @@ $('.b2')[0].onclick = function() {
},
})
if (localStorage.getItem('moxi1') || localStorage.getItem('moxi2')) {
console.log("开始时零零商量商量商量商量")
if (document.getElementById('fileDragArea').innerText == '模型载入中。。。') {
alert('请导入模型')
$('.w1').hide()
......@@ -549,7 +548,6 @@ function animate() {
})
} else {
console.log("111")
mixerarr.forEach((item) => {
item.mixer1.update(delta)
})
......@@ -658,16 +656,13 @@ dragDrop.addEventListener("drop", function(e) {
var files = e.target.files || e.dataTransfer.files;
var dragDrop = document.getElementById('fileDragArea')
var items = e.dataTransfer.items
console.log(items.length)
for (var i = 0; i < items.length; i++) {
var item = items[i].webkitGetAsEntry();
console.log(item)
if (item) {
//判断是否为文件夹
if (item.isDirectory) {
if (item.name.includes('绕线机')) {
localStorage.setItem('moxi2', '绕线机模型')
console.log(scene)
scene.children.forEach((item) => {
if (item.name == '绕线机' || item.name == '绕线机图片') {
item.visible = true
......@@ -825,7 +820,6 @@ function allpromise(a, c) {
group2.visible = false
}
if (a == 'k') {
console.log('asdasd', gltf)
group2.name = '打簧机1'
group2.position.set(1, 0.3, 1.2);
group2.scale.set(1.2, 1.2, 1.2);
......@@ -1252,7 +1246,6 @@ function getold() {
}
function tb(a, b) {
console.log(a, b)
a.forEach((item) => {
if (item.name == '图片' && item.variable !== '配置变量') {
variablearr.push(item.variable)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment