mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
BBIM: improve task object selection
This commit is contained in:
@@ -695,10 +695,10 @@ class Sequence(blenderbim.core.tool.Sequence):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def select_products(cls, products):
|
def select_products(cls, products):
|
||||||
for obj in bpy.context.visible_objects:
|
[obj.select_set(False) for obj in bpy.context.selected_objects]
|
||||||
obj.select_set(False)
|
for product in products:
|
||||||
if obj.BIMObjectProperties.ifc_definition_id in [product.id() for product in products]:
|
obj = tool.Ifc.get_object(product)
|
||||||
obj.select_set(True)
|
obj.select_set(True) if obj else None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def add_task_column(cls, column_type, name, data_type):
|
def add_task_column(cls, column_type, name, data_type):
|
||||||
|
|||||||
Reference in New Issue
Block a user