forked from 1b-agent/opencadstudio-upstream
fix(dimension): an edited dimension keeps its layer's linetype
A dimension loaded from a file draws from its baked *D block, whose lines are ByBlock and so take the dimension's linetype (ByLayer: the layer's). Any edit - text colour, MATCHPROP, a grip - drops that block and the dimension draws live, where a style with no DIMLTYPE/DIMLTEX1/2 drew solid: an edited dimension on a dashed layer turned solid (#898). None or ByBlock now takes the dimension's own linetype, ByLayer its layer's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1fec34d84a
commit
2a15a370f6
2 files changed
+33
-22
No files matched your search
@@ -3383,7 +3383,7 @@ pub(in crate::scene) fn linetype_name_for<'a>(document: &'a CadDocument, e: &'a
|
||||
linetype_name_for_viewport(document, e, None)
|
||||
}
|
||||
|
||||
pub(in crate::scene) fn linetype_name_for_common_viewport<'a>(
|
||||
pub(crate) fn linetype_name_for_common_viewport<'a>(
|
||||
document: &'a CadDocument,
|
||||
common: &'a codec::entities::EntityCommon,
|
||||
viewport: Option<Handle>,
|
||||
|
||||
Reference in new issue
Block a user