Base: Rename Base::freecad_dynamic_cast into freecad_cast
This is to make it shorter and easier to use. QT does the same thing with their qobject_cast.
This commit is contained in:
committed by
Chris Hennes
parent
5fb6638b7f
commit
9d97d1c895
@@ -374,7 +374,7 @@ void Tessellation::setFaceColors(int method, App::Document* doc, App::DocumentOb
|
||||
Gui::Application::Instance->getViewProvider(doc->getActiveObject());
|
||||
auto vpmesh = dynamic_cast<MeshGui::ViewProviderMesh*>(vpm);
|
||||
|
||||
auto svp = Base::freecad_dynamic_cast<PartGui::ViewProviderPartExt>(
|
||||
auto svp = freecad_cast<PartGui::ViewProviderPartExt>(
|
||||
Gui::Application::Instance->getViewProvider(obj));
|
||||
if (vpmesh && svp) {
|
||||
std::vector<Base::Color> diff_col = svp->ShapeAppearance.getDiffuseColors();
|
||||
@@ -463,7 +463,7 @@ QString Tessellation::getStandardParameters(App::DocumentObject* obj) const
|
||||
param += QStringLiteral(",Segments=True");
|
||||
}
|
||||
|
||||
auto svp = Base::freecad_dynamic_cast<PartGui::ViewProviderPartExt>(
|
||||
auto svp = freecad_cast<PartGui::ViewProviderPartExt>(
|
||||
Gui::Application::Instance->getViewProvider(obj));
|
||||
if (ui->groupsFaceColors->isChecked() && svp) {
|
||||
// TODO: currently, we can only retrieve part feature
|
||||
|
||||
Reference in New Issue
Block a user