forked from 1b-agent/opencadstudio-upstream
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:
1 parent
bd89507a6c
commit
4559c8a2d8
1 file changed
+3
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user