mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 00:23:14 +00:00
Fix regression in 227f31574 which prevented quantifications
The key in the dictionary is not a class name, it's a query string to allow for complex quantification rules.
This commit is contained in:
@@ -128,7 +128,7 @@ class CalculateSingleQuantity(bpy.types.Operator, tool.Ifc.Operator):
|
||||
|
||||
props = context.scene.BIMQtoProperties
|
||||
elements = set()
|
||||
for obj in context.selected_objects:
|
||||
for obj in tool.Blender.get_selected_objects(include_active=False):
|
||||
element = tool.Ifc.get_entity(obj)
|
||||
if element:
|
||||
elements.add(element)
|
||||
|
||||
@@ -1097,7 +1097,7 @@ def prop_is_roughly_value(prop, value):
|
||||
def the_object_name_has_a_cartesian_point_offset_of_offset(name: str, offset: str) -> None:
|
||||
offset = replace_variables(offset)
|
||||
obj = the_object_name_exists(name)
|
||||
props = tool.Blender.get_object_props(obj)
|
||||
props = tool.Blender.get_object_bim_props(obj)
|
||||
assert props.blender_offset_type == "CARTESIAN_POINT"
|
||||
obj_offset = np.array(tuple(map(float, props.cartesian_point_offset.split(","))))
|
||||
offset = np.array(tuple(map(float, offset.split(","))))
|
||||
|
||||
Reference in New Issue
Block a user