forked from 1b-agent/opencadstudio-upstream
WIP count feature
This commit is contained in:
1 parent
b8def31145
commit
e29b408bda
26 files changed
+1887
-44
No files matched your search
@@ -155,6 +155,15 @@ impl OpenCADStudio {
|
||||
);
|
||||
}
|
||||
FieldDialogMsg::PlotScale(k) => state.plot_scale = k,
|
||||
FieldDialogMsg::CountExpression(v) => state.count_expression = v,
|
||||
FieldDialogMsg::ShowCountInstances => {
|
||||
// The dialog closes and count mode shows what the expression counts.
|
||||
let json = state.count_expression.clone();
|
||||
self.field_dialog = None;
|
||||
self.close_active_modal();
|
||||
self.show_count_instances(i, &json);
|
||||
return Task::none();
|
||||
}
|
||||
FieldDialogMsg::SelectObject => {
|
||||
// The dialog waits while one object is picked.
|
||||
self.active_modal = None;
|
||||
|
||||
Reference in new issue
Block a user