From b5295411b509ae5ace7eb589b3620e00cab477de Mon Sep 17 00:00:00 2001 From: sliptonic Date: Sat, 20 Jul 2024 11:53:29 -0500 Subject: [PATCH] Fixes https://github.com/Ondsel-Development/FreeCAD/issues/114 The refactored postprocessor system uses a factory to load scripts. The preference system has logic to load the scripts to get the tooltips That logic was overlooked during the refactor. Added it here. --- src/Mod/CAM/Path/Main/Gui/PreferencesJob.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/CAM/Path/Main/Gui/PreferencesJob.py b/src/Mod/CAM/Path/Main/Gui/PreferencesJob.py index 512647b393..969fa3f600 100644 --- a/src/Mod/CAM/Path/Main/Gui/PreferencesJob.py +++ b/src/Mod/CAM/Path/Main/Gui/PreferencesJob.py @@ -23,7 +23,7 @@ import FreeCAD import Path import Path.Main.Stock as PathStock -from Path.Post.Processor import PostProcessor +from Path.Post.Processor import PostProcessor, PostProcessorFactory import json from FreeCAD import Units @@ -330,7 +330,7 @@ class JobPreferencesPage: def getPostProcessor(self, name): if not name in self.processor: - processor = PostProcessor.load(name) + processor = PostProcessorFactory.get_post_processor(None, name) self.processor[name] = processor return processor return self.processor[name]