Browse Source

fix: 3dtiles有的tiles贴图花掉的bug

xzw 6 tháng trước cách đây
mục cha
commit
184bb7736e
2 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 4 2
      public/lib/potree/potree.js
  2. 1 1
      public/lib/potree/potree.js.map

+ 4 - 2
public/lib/potree/potree.js

@@ -39104,6 +39104,7 @@
 	        if (result.done) {
 	          break;
 	        }
+	        //value中的properties来自dbf,但该属性没有被用到,是否可以不加载
 	        if (result.value && result.value.type === 'Feature' && result.value.geometry !== undefined) {
 	          features.push(result.value);
 	        }
@@ -39465,6 +39466,8 @@
 	}
 	*/
 
+	//shp必须,dbf目前没用,prj最好有
+
 	var defaultColors = {
 	  "landuse": [0.5, 0.5, 0.5],
 	  "natural": [0.0, 1.0, 0.0],
@@ -82035,8 +82038,7 @@
 	      if (mesh.material) {
 	        var mats = mesh.material instanceof Array ? mesh.material : [mesh.material];
 	        mats.forEach(mat => {
-	          var _mat$uniforms;
-	          var map = mat.map instanceof Texture ? mat.map : (_mat$uniforms = mat.uniforms) === null || _mat$uniforms === void 0 || (_mat$uniforms = _mat$uniforms.map) === null || _mat$uniforms === void 0 ? void 0 : _mat$uniforms.value; //basicMaterial
+	          var map = mat.map;
 	          if (map) {
 	            if (!map.image) {
 	              console.error('!mat.map.image  ??', mat.map.uuid); //obj可能会

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 1
public/lib/potree/potree.js.map