fix(scene): clear selection after erase
This commit is contained in:
parent
05b044f367
commit
8050fc79fd
7 changed files with 50 additions and 11 deletions
|
|
@ -334,7 +334,9 @@ impl OpenCADStudio {
|
|||
n += 1;
|
||||
}
|
||||
// Draw the text in front of its newly-added masks.
|
||||
self.tabs[i].scene.selected = handles.iter().cloned().collect();
|
||||
self.tabs[i]
|
||||
.scene
|
||||
.replace_selection(handles.iter().cloned().collect());
|
||||
self.tabs[i].dirty = true;
|
||||
self.command_line
|
||||
.push_output(&format!("TEXTMASK: masked {n} text object(s)."));
|
||||
|
|
|
|||
|
|
@ -754,7 +754,7 @@ impl OpenCADStudio {
|
|||
.push_info(&format!("{cmd}: no text or dimension objects."));
|
||||
return Some(Task::none());
|
||||
}
|
||||
self.tabs[i].scene.selected = handles;
|
||||
self.tabs[i].scene.replace_selection(handles);
|
||||
return self.dispatch_view(
|
||||
if to_front {
|
||||
"DRAWORDER FRONT"
|
||||
|
|
|
|||
Loading…
Reference in a new issue