forked from 1b-agent/opencadstudio-upstream
fix(mleader): improve grips, styles and annotative behavior
This commit is contained in:
1 parent
43c150199e
commit
d693bcf968
8 files changed
+1075
-189
No files matched your search
@@ -1248,6 +1248,17 @@ impl super::OpenCADStudio {
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
// En una MLEADER anotativa, el texto forma parte del
|
||||
// propio contexto por escala. Copiar la edición también
|
||||
// a la representación que está actualmente en pantalla.
|
||||
if matches!(
|
||||
self.tabs[i].scene.document.get_entity(h),
|
||||
Some(EntityType::MultiLeader(_))
|
||||
) {
|
||||
self.tabs[i]
|
||||
.scene
|
||||
.sync_displayed_annotation_context(h);
|
||||
}
|
||||
self.tabs[i]
|
||||
.scene
|
||||
.bump_entities(&[(h, crate::scene::ChangeKind::Modified)]);
|
||||
@@ -1336,6 +1347,14 @@ impl super::OpenCADStudio {
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
if matches!(
|
||||
self.tabs[i].scene.document.get_entity(h),
|
||||
Some(EntityType::MultiLeader(_))
|
||||
) {
|
||||
self.tabs[i]
|
||||
.scene
|
||||
.sync_displayed_annotation_context(h);
|
||||
}
|
||||
self.tabs[i]
|
||||
.scene
|
||||
.bump_entities(&[(h, crate::scene::ChangeKind::Modified)]);
|
||||
|
||||
Reference in new issue
Block a user