Material: Material appearance
Uses new material system for appearance Each feature object now has a property called ShapeMaterial that describes its physical properties. If it has a shape, it has a material. The ShapeColor attribute is replaced by a ShapeAppearance attribute. This is a material list that describes all appearance properties, not just diffuse color. As a list in can be used for all elements of a shape, such as edges and faces. A new widget is provided to allow the user to select materials in a consistent fashion. It can also launch the material editor with its more advanced capabilities.
This commit is contained in:
committed by
Chris Hennes
parent
37c38acd19
commit
ba20441935
@@ -263,7 +263,7 @@ static void _copyShape(const char *cmdName, bool resolve,bool needElement=false,
|
||||
v.second->getNameInDocument(),
|
||||
Gui::Command::getObjectCmd(v.second).c_str());
|
||||
auto newObj = App::GetApplication().getActiveDocument()->getActiveObject();
|
||||
Gui::Command::copyVisual(newObj, "ShapeColor", v.second);
|
||||
Gui::Command::copyVisual(newObj, "ShapeAppearance", v.second);
|
||||
Gui::Command::copyVisual(newObj, "LineColor", v.second);
|
||||
Gui::Command::copyVisual(newObj, "PointColor", v.second);
|
||||
}
|
||||
@@ -378,7 +378,7 @@ void CmdPartRefineShape::activated(int iMsg)
|
||||
obj->getNameInDocument(),
|
||||
obj->getNameInDocument());
|
||||
|
||||
copyVisual("ActiveObject", "ShapeColor", obj->getNameInDocument());
|
||||
copyVisual("ActiveObject", "ShapeAppearance", obj->getNameInDocument());
|
||||
copyVisual("ActiveObject", "LineColor", obj->getNameInDocument());
|
||||
copyVisual("ActiveObject", "PointColor", obj->getNameInDocument());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user