Gui: expose ViewProviderGeometryObject::getUserDefinedMaterial() to Python

This commit is contained in:
wmayer
2024-04-25 17:56:58 +02:00
parent e85954e8a3
commit e591b95228
5 changed files with 21 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ const App::PropertyIntegerConstraint::Constraints intPercent = {0, 100, 5};
ViewProviderGeometryObject::ViewProviderGeometryObject()
{
App::Material mat = getDefaultMaterial();
App::Material mat = getUserDefinedMaterial();
long initialTransparency = toPercent(mat.transparency);
static const char* dogroup = "Display Options";
@@ -115,7 +115,7 @@ ViewProviderGeometryObject::~ViewProviderGeometryObject()
pcBoundColor->unref();
}
App::Material ViewProviderGeometryObject::getDefaultMaterial() const
App::Material ViewProviderGeometryObject::getUserDefinedMaterial()
{
ParameterGrp::handle hGrp =
App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");