Explorar el Código

模型包围盒设置可清除

Alfyn hace 3 semanas
padre
commit
077b76bacc
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  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({