lyhzzz 1 éve
szülő
commit
6022e5efdd

+ 1 - 1
src/main/java/com/fdkankan/fusion/common/util/OBJToGLBUtil.java

@@ -50,7 +50,7 @@ public class OBJToGLBUtil {
 
         long length = new File(objPath).length();
         long mb = length / 1024 /1024;
-        if(mb >0){
+        if(mb >100){
             return  (mb /10) >10 ?10:Integer.parseInt(String.valueOf(mb /10));
         }
 

+ 5 - 3
src/main/java/com/fdkankan/fusion/service/impl/ThreadService.java

@@ -219,9 +219,11 @@ public class ThreadService {
             if(file.isDirectory()){
                 toGlB(file,localGlbPath);
             }
-            if(file.getPath().contains("lod_") && file.getPath().contains("lod_0") && file.getName().contains(".obj") ){
-                String glbPath =  OBJToGLBUtil.objToB3dm(file.getPath(),file.getParentFile().getPath()+"/b3dm");
-                localGlbPath.add(glbPath);
+            if(file.getPath().contains("lod_")  ){
+                if(file.getPath().contains("lod_0") && file.getName().contains(".obj")){
+                    String glbPath =  OBJToGLBUtil.objToB3dm(file.getPath(),file.getParentFile().getPath()+"/b3dm");
+                    localGlbPath.add(glbPath);
+                }
                 continue;
             }