Fix object materials UI #6375 (ba37754)

This commit is contained in:
Andrej730
2025-03-17 15:09:25 +05:00
parent 55be5cc289
commit a8ff6ecf14
@@ -300,7 +300,7 @@ class ObjectMaterialData:
else:
data["material"] = item.Material.Name or "Unnamed"
results.append(data)
should_reverse = cls.material.DirectionSense == "POSITIVE"
should_reverse = cls.material.is_a("IfcMaterialLayerSetUsage") and cls.material.DirectionSense == "POSITIVE"
last_i = len(results) - 1
for i, result in enumerate(results):
result["index"] = i