From d1439107dfd211da01aae763eedb29db65b1b5c7 Mon Sep 17 00:00:00 2001 From: M G Berberich Date: Sun, 28 Feb 2021 14:44:37 +0100 Subject: [PATCH] [PD] fixes problem with the path for user-defined hole-cut-types https://forum.freecadweb.org/viewtopic.php?f=19&t=51403&start=20#p482574 --- src/Mod/PartDesign/App/FeatureHole.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/App/FeatureHole.cpp b/src/Mod/PartDesign/App/FeatureHole.cpp index 2fb638c4df..435e354597 100644 --- a/src/Mod/PartDesign/App/FeatureHole.cpp +++ b/src/Mod/PartDesign/App/FeatureHole.cpp @@ -2190,10 +2190,9 @@ void from_json(const nlohmann::json &j, Hole::CutDimensionSet &t) void Hole::readCutDefinitions() { - const char subpath[] = "Mod/PartDesign/Resources/Hole"; std::vector dirs { - ::App::Application::getResourceDir() + subpath, - ::App::Application::getUserAppDataDir() + subpath, + ::App::Application::getResourceDir() + "Mod/PartDesign/Resources/Hole", + ::App::Application::getUserAppDataDir() + "PartDesign/Hole" }; std::clog << "Looking for thread definitions in: ";