forked from 1b-agent/opencadstudio-upstream
fix: allow editing dimension styles
This commit is contained in:
1 parent
aedd0b8d2d
commit
3a752029cd
4 files changed
+6
-60
No files matched your search
@@ -1030,9 +1030,7 @@ impl OpenCADStudio {
|
||||
}
|
||||
};
|
||||
let ds_sel = doc.dim_styles.get(&self.dimstyle_selected);
|
||||
let read_only = ds_sel.is_some_and(|style| {
|
||||
style.xref_reference || style.xref_dependent || !style.xref_handle.is_null()
|
||||
});
|
||||
let read_only = false;
|
||||
let in_use = doc.entities().any(|entity| {
|
||||
matches!(entity, acadrust::EntityType::Dimension(dimension)
|
||||
if dimension.base().style_name.eq_ignore_ascii_case(&self.dimstyle_selected))
|
||||
|
||||
Reference in new issue
Block a user