Refactor attribute filtering logic in insert.rs

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
This commit is contained in:
dasmatusandCopilot Autofix powered by AI authored and GitHub committed 2026-09-19 17:51:17 +02:00
1 parent 6d3eca811e
commit a8f75e969d
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();