diff --git a/src/Mod/Part/App/BodyBase.h b/src/Mod/Part/App/BodyBase.h index 6ed0220601..dc0b2dfbaf 100644 --- a/src/Mod/Part/App/BodyBase.h +++ b/src/Mod/Part/App/BodyBase.h @@ -69,7 +69,8 @@ public: * That is, sketches and datum features are skipped * If inclusive is true, start or the Tip is returned if it is a solid feature */ - virtual App::DocumentObject *getPrevSolidFeature(App::DocumentObject *start = NULL, const bool inclusive = true){} + virtual App::DocumentObject *getPrevSolidFeature(App::DocumentObject *start = NULL, const bool inclusive = true) + { return NULL; } /// Return the body which this feature belongs too, or NULL static BodyBase* findBodyOf(const App::DocumentObject* f); diff --git a/src/Mod/Part/App/CMakeLists.txt b/src/Mod/Part/App/CMakeLists.txt index 8889304405..7c499acf11 100644 --- a/src/Mod/Part/App/CMakeLists.txt +++ b/src/Mod/Part/App/CMakeLists.txt @@ -16,6 +16,7 @@ include_directories( ${Boost_INCLUDE_DIRS} ${OCC_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS} + ${QT_INCLUDE_DIR} ${XercesC_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS} diff --git a/src/Mod/Part/App/DatumFeature.cpp b/src/Mod/Part/App/DatumFeature.cpp index a4fe088c36..407288be04 100644 --- a/src/Mod/Part/App/DatumFeature.cpp +++ b/src/Mod/Part/App/DatumFeature.cpp @@ -55,7 +55,6 @@ # include #endif -#include #include #include "DatumFeature.h" #include diff --git a/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp b/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp index a1bfb78cda..6f855c37c1 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp @@ -155,7 +155,7 @@ void ViewProviderDatumPlane::updateData(const App::Property* prop) m /= points.size(); // Sort by angles - double a[points.size()]; + std::vector a(points.size()); for (int i = 0; i < points.size() - 1; i++) { if (longest == 0) a[i] = atan2(points[i].z - m.z, points[i].y - m.y); diff --git a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp index 4f033ab33a..49b1fca378 100644 --- a/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp +++ b/src/Mod/Sketcher/Gui/CommandCreateGeo.cpp @@ -4486,9 +4486,9 @@ namespace SketcherGui { if (!sSubName || sSubName[0] == '\0') return false; std::string element(sSubName); - // for the moment we allow only edges and vertices if ((element.size() > 4 && element.substr(0,4) == "Edge") || - (element.size() > 6 && element.substr(0,6) == "Vertex")) { + (element.size() > 6 && element.substr(0,6) == "Vertex") || + (element.size() > 4 && element.substr(0,4) == "Face")) { return true; } return false; @@ -4596,7 +4596,8 @@ public: if (obj->getTypeId().isDerivedFrom(App::Plane::getClassTypeId()) || obj->getTypeId().isDerivedFrom(Part::Datum::getClassTypeId()) || (subName.size() > 4 && subName.substr(0,4) == "Edge") || - (subName.size() > 6 && subName.substr(0,6) == "Vertex")) { + (subName.size() > 6 && subName.substr(0,6) == "Vertex") || + (subName.size() > 4 && subName.substr(0,4) == "Face")) { try { Gui::Command::openCommand("Add external geometry"); Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.%s.addExternal(\"%s\",\"%s\")",