feat(model): edit primitive history properties

This commit is contained in:
Hakan Seven committed 2026-08-11 20:14:51 +03:00
1 parent 4ac10187c2
commit 59ca0f693f
5 files changed
+257 -12

No files matched your search

+27 -6
View File
@@ -2206,15 +2206,36 @@ pub(super) fn on_tab_close(&mut self, idx: usize) -> Task<Message> {
}
}
_ => {
if let Some(entity) =
self.tabs[i].scene.document.get_entity_mut(handle)
{
crate::scene::view::dispatch::apply_geom_prop_in_working_plane(
entity,
if crate::scene::model::solid_history::is_primitive_property(
field,
) {
self.tabs[i].scene.apply_solid_history_property(
handle,
field,
&val,
);
} else if self.tabs[i]
.scene
.apply_solid_position_property(
handle,
field,
&val,
plane,
);
)
.is_none()
{
if let Some(entity) = self.tabs[i]
.scene
.document
.get_entity_mut(handle)
{
crate::scene::view::dispatch::apply_geom_prop_in_working_plane(
entity,
field,
&val,
plane,
);
}
}
}
}