Materials: Correct installation paths
Correct the installation paths affecting builds on various systems while still maintaining the old material editor required for backwards compatibility
This commit is contained in:
committed by
Chris Hennes
parent
a35ba33433
commit
b9475fc74c
@@ -69,7 +69,7 @@ class MaterialEditor:
|
||||
self.iconPath = (filePath + "Resources" + os.sep + "icons" + os.sep)
|
||||
|
||||
# load the UI file from the same directory as this script
|
||||
self.widget = FreeCADGui.PySideUic.loadUi(filePath + "Resources" + os.sep + "ui" + os.sep + "materials-editor.ui")
|
||||
self.widget = FreeCADGui.PySideUic.loadUi(":/ui/materials-editor.ui")
|
||||
# remove unused Help button
|
||||
self.widget.setWindowFlags(self.widget.windowFlags()
|
||||
& ~QtCore.Qt.WindowContextHelpButtonHint)
|
||||
|
||||
Reference in New Issue
Block a user