diff --git a/src/Mod/Assembly/Gui/Makefile.am b/src/Mod/Assembly/Gui/Makefile.am index 249b578b2..55eba4b7b 100644 --- a/src/Mod/Assembly/Gui/Makefile.am +++ b/src/Mod/Assembly/Gui/Makefile.am @@ -2,14 +2,11 @@ SUBDIRS=Resources lib_LTLIBRARIES=libAssemblyGui.la AssemblyGui.la -BUILT_SOURCES=\ - moc_AssemblyView.cpp +#BUILT_SOURCES libAssemblyGui_la_SOURCES=\ AppAssemblyGuiPy.cpp \ Command.cpp \ - AssemblyView.cpp \ - AssemblyView.h \ PreCompiled.cpp \ PreCompiled.h \ Workbench.cpp \ diff --git a/src/Mod/Cam/App/CMakeLists.txt b/src/Mod/Cam/App/CMakeLists.txt index 3080a60dc..0b4191374 100644 --- a/src/Mod/Cam/App/CMakeLists.txt +++ b/src/Mod/Cam/App/CMakeLists.txt @@ -88,7 +88,11 @@ SET(Cam_SRCS add_library(Cam SHARED ${Cam_SRCS}) target_link_libraries(Cam ${Cam_LIBS}) -fc_copy_script("Mod/Cam" "Cam" Init.py) + +fc_target_copy_resource(Cam + ${CMAKE_SOURCE_DIR}/src/Mod/Cam + ${CMAKE_BINARY_DIR}/Mod/Cam + Init.py) if(MSVC) set_target_properties(Cam PROPERTIES SUFFIX ".pyd") diff --git a/src/Mod/Cam/Gui/CMakeLists.txt b/src/Mod/Cam/Gui/CMakeLists.txt index dd86a4940..1d8fa71b8 100644 --- a/src/Mod/Cam/Gui/CMakeLists.txt +++ b/src/Mod/Cam/Gui/CMakeLists.txt @@ -65,7 +65,11 @@ SET(CamGui_SRCS add_library(CamGui SHARED ${CamGui_SRCS}) target_link_libraries(CamGui ${CamGui_LIBS}) -fc_copy_script("Mod/Cam" "CamGui" InitGui.py) + +fc_target_copy_resource(CamGui + ${CMAKE_SOURCE_DIR}/src/Mod/Cam + ${CMAKE_BINARY_DIR}/Mod/Cam + InitGui.py) if(MSVC) set_target_properties(CamGui PROPERTIES SUFFIX ".pyd") diff --git a/src/Mod/Cam/Gui/Cutting.cpp b/src/Mod/Cam/Gui/Cutting.cpp index 85c8931f9..b72364aae 100644 --- a/src/Mod/Cam/Gui/Cutting.cpp +++ b/src/Mod/Cam/Gui/Cutting.cpp @@ -899,7 +899,9 @@ void Cutting::zLevelCallback(void * ud, SoEventCallback * n) if (!vp || !vp->getTypeId().isDerivedFrom(PartGui::ViewProviderPart::getClassTypeId())) return; PartGui::ViewProviderPart* vpp = static_cast(vp); - TopoDS_Shape sh = vpp->getShape(point); + std::string element = vpp->getElement(point->getDetail()); + TopoDS_Shape sh = static_cast(vpp->getObject())-> + Shape.getShape().getSubShape(element.c_str()); if (!sh.IsNull()) { // ok a shape was picked