Skip to content

Commit

Permalink
FIX: Comparison with found material
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Apr 30, 2024
1 parent 7aeddca commit 96d4043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyaedt/modeler/cad/Primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ def get_objects_by_material(self, material=None):
.GetPropEvaluatedValue("Material")
.lower()
)
if found_material.lower() == material:
if found_material == material.lower():
obj_lst.append(obj)
elif obj and (obj.material_name == material or obj.material_name == material.lower()):
obj_lst.append(obj)
Expand Down

0 comments on commit 96d4043

Please sign in to comment.