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:
Dion Moult
2025-03-13 09:18:01 +11:00
parent ba8753d55e
commit d89957faab
3 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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(","))))