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.
This commit is contained in:
sliptonic
2024-07-20 11:53:29 -05:00
committed by Chris Hennes
parent 3e546c5b5b
commit 7709af53d4

View File

@@ -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]