分割球体工具触发自动计算修改
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2026-06-22 16:58:39 +08:00
parent abbc15cb09
commit 370f99eabc
1 changed files with 2 additions and 2 deletions

View File

@ -1577,7 +1577,7 @@ export default {
}, },
segmentationModifiedCallback(evt) { segmentationModifiedCallback(evt) {
const { detail } = evt; const { detail } = evt;
let tools = [...this.ThresholdTools, ...this.tools] let tools = [...this.ThresholdTools, ...this.tools, 'SphericalBrush']
if (!detail || detail.segmentIndex === 255 || !this.activeTool || !tools.includes(this.activeTool)) { if (!detail || detail.segmentIndex === 255 || !this.activeTool || !tools.includes(this.activeTool)) {
return; return;
} }
@ -1642,12 +1642,12 @@ export default {
contentMouseup() { contentMouseup() {
try { try {
// console.log("segment contentMouseup") // console.log("segment contentMouseup")
if (!this.drawing) return false
if (this.timeoutId) { if (this.timeoutId) {
clearTimeout(this.timeoutId); clearTimeout(this.timeoutId);
this.timeoutId = null; this.timeoutId = null;
} }
this.timeoutId = setTimeout(() => { this.timeoutId = setTimeout(() => {
if (!this.drawing) return false
this.timeoutId = null; this.timeoutId = null;
this.drawing = false; this.drawing = false;
let segmentGroup = this.segmentList.find(item => item.segmentationId === this.segmentationId) let segmentGroup = this.segmentList.find(item => item.segmentationId === this.segmentationId)