Browse Source

模型包围盒设置可清除

Alfyn 3 weeks ago
parent
commit
077b76bacc
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/modelView/modules/OperationMenu.vue

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

@@ -1046,7 +1046,13 @@ export default {
           })
           })
           break
           break
         case 'ModelBoundingBox':
         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
           break
         case 'SubAttributes':
         case 'SubAttributes':
           this.NotificationPopup({
           this.NotificationPopup({