From 96d4043a281d934f02eb647fced5b7337aa4bcb7 Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Tue, 30 Apr 2024 10:36:42 +0200 Subject: [PATCH] FIX: Comparison with found material --- pyaedt/modeler/cad/Primitives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyaedt/modeler/cad/Primitives.py b/pyaedt/modeler/cad/Primitives.py index 5e25b4df5a9..67a284f0879 100644 --- a/pyaedt/modeler/cad/Primitives.py +++ b/pyaedt/modeler/cad/Primitives.py @@ -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)