bim.hide_queried_linked_element - note known UNDO limitation

This commit is contained in:
Andrej730
2026-03-09 18:39:32 +05:00
parent 584bbe3b83
commit 4b12b6dacd
2 changed files with 6 additions and 1 deletions
@@ -2373,7 +2373,8 @@ class HideQueriedLinkedElement(bpy.types.Operator):
bl_description = (
"Hide geometry for currently queried linked element.\n\n"
"ALT+Click (or ALT+H in Explore Tool) to unhide all geometry for currently selected linked model.\n"
"(Not Yet Implemented) SHIFT+Click to hide everything but currently queried element."
"(Not Yet Implemented) SHIFT+Click to hide everything but currently queried element.\n\n"
"Know limitation: doesn't work with UNDO."
)
bl_options = {"REGISTER", "UNDO"}
+4
View File
@@ -675,6 +675,10 @@ class Project(bonsai.core.tool.Project):
# `MeshPolygon.hide` works only in EDIT mode,
# so we use vertex groups + Mask modifier.
# But since for hiding we're modifying object in a linked model,
# then those changes are ephemeral and not fully supported by Blender
# e.g. they're not tracked by UNDO system.
MODIFIER_VG_NAME = "BBIM_HIDE_LINKED_GEOMETRY"
vertex_groups = obj.vertex_groups