Material: Appearance Updates 2
Improves the use of the ShapeAppearance property for the Part workbench.
removes DiffuseColor property
adds Python compatibility using custom attributes
transitions DiffuseColor to ShapeAppearance on open
Improved UI elements for setting object appearance, and appearance per face
Lays the foundation for future texture support
This commit is contained in:
committed by
Chris Hennes
parent
958d83ed06
commit
8b5a3b1124
@@ -71,7 +71,7 @@ PyObject* ViewProviderGeometryObjectPy::getCustomAttributes(const char* attr) co
|
||||
|
||||
PyObject* ViewProviderGeometryObjectPy::getUserDefinedMaterial()
|
||||
{
|
||||
App::Material mat = ViewProviderGeometryObject::getUserDefinedMaterial();
|
||||
App::Material mat = App::Material::getDefaultAppearance();
|
||||
return new App::MaterialPy(new App::Material(mat));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user