Look up materials with full path. Revert changes to the Material namespace

This commit is contained in:
Furgo
2024-05-05 17:14:25 +02:00
committed by Yorik van Havre
parent 4448f25923
commit 5179a4b9c5
2 changed files with 4 additions and 15 deletions

View File

@@ -97,9 +97,9 @@ def decode(name):
# as we had and we might will have problems again and again
# https://github.com/berndhahnebach/FreeCAD_bhb/commits/materialdev
def read(filename, library):
def read(filename):
materialManager = Materials.MaterialManager()
material = materialManager.getMaterialByPath(filename, library)
material = materialManager.getMaterialByPath(filename)
return material.Properties
# Metainformation