ソースを参照

模型包围盒设置可清除

Alfyn 3 週間 前
コミット
077b76bacc
1 ファイル変更7 行追加1 行削除
  1. 7 1
      src/views/modelView/modules/OperationMenu.vue

+ 7 - 1
src/views/modelView/modules/OperationMenu.vue

@@ -1046,7 +1046,13 @@ export default {
           })
           break
         case 'ModelBoundingBox':
-          window.api.Model.addBoundingVolume(that.$store.state.model.mainModelMsg.lightweightName)
+          if(!this.isOpenModelBoundingBox){
+            this.isOpenModelBoundingBox = true
+            window.api.Model.addBoundingVolume(that.$store.state.model.mainModelMsg.lightweightName)
+          }else{
+            this.isOpenModelBoundingBox = false
+            window.api.Model.clearBoundingVolume();
+          }
           break
         case 'SubAttributes':
           this.NotificationPopup({