mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
bim.hide_queried_linked_element - note known UNDO limitation
This commit is contained in:
@@ -2373,7 +2373,8 @@ class HideQueriedLinkedElement(bpy.types.Operator):
|
|||||||
bl_description = (
|
bl_description = (
|
||||||
"Hide geometry for currently queried linked element.\n\n"
|
"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"
|
"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"}
|
bl_options = {"REGISTER", "UNDO"}
|
||||||
|
|
||||||
|
|||||||
@@ -675,6 +675,10 @@ class Project(bonsai.core.tool.Project):
|
|||||||
|
|
||||||
# `MeshPolygon.hide` works only in EDIT mode,
|
# `MeshPolygon.hide` works only in EDIT mode,
|
||||||
# so we use vertex groups + Mask modifier.
|
# 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"
|
MODIFIER_VG_NAME = "BBIM_HIDE_LINKED_GEOMETRY"
|
||||||
|
|
||||||
vertex_groups = obj.vertex_groups
|
vertex_groups = obj.vertex_groups
|
||||||
|
|||||||
Reference in New Issue
Block a user