xzw 4 月之前
父节点
当前提交
fbc8388039
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      public/lib/potree/potree.js
  2. 1 1
      public/lib/potree/potree.js.map

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

@@ -75925,7 +75925,7 @@
 	          this.selectModel(object, posInModel);
 	        } else {
 	          //if(!viewer.inputHandler.selection[0]){//正在平移和旋转,不允许取消
-	          if (this.selected == object && this.transformControls.mode == 'translate') {
+	          if (this.selected == object && this.transformControls.object == object && this.transformControls.mode == 'translate') {
 	            this.selectModel(object, posInModel); //update click pos
 	          } else {
 	            this.selectModel(null);
@@ -82488,7 +82488,7 @@
 	    var transitionRatio2 = 0.8 * delta * 60;
 	    var posePathModels = [];
 	    [this.poseKeys, this.pathKeys /* , this.clipKeys */].forEach(map => {
-	      map.keys().forEach(model => {
+	      Array.from(map.keys()).forEach(model => {
 	        posePathModels.includes(model) || posePathModels.push(model);
 	      });
 	    });

文件差异内容过多而无法显示
+ 1 - 1
public/lib/potree/potree.js.map