Refactor attribute filtering logic in insert.rs

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
(cherry picked from commit a8f75e969d)
This commit is contained in:
dasmatus authored and Hakan Seven committed 2026-09-20 21:29:15 +03:00
1 parent bd89507a6c
commit 4559c8a2d8
1 file changed
+3 -2
+3 -2
View File
@@ -121,9 +121,10 @@ pub(crate) fn visible_attribute_grips(
.iter()
.enumerate()
.filter_map(|(i, attribute)| {
if !attribute_is_movable(attribute)
if attribute.flags.constant
|| attribute.lock_position
|| attribute.flags.locked_position
|| !attribute_is_render_visible(document, visibility, attribute)
{
return None;
}
let mut attribute = attribute.clone();