Merge pull request #25827 from tarman3/pathcommands_looperror

CAM: PathCommands - Remove pop message about loop error
This commit is contained in:
sliptonic
2025-12-12 12:19:38 -06:00
committed by GitHub

View File

@@ -39,9 +39,8 @@ from PySide.QtCore import QT_TRANSLATE_NOOP
if FreeCAD.GuiUp:
import FreeCADGui
from PySide import QtCore
from PySide import QtGui
# translate = FreeCAD.Qt.translate
translate = FreeCAD.Qt.translate
__title__ = "FreeCAD Path Commands"
__author__ = "sliptonic"
@@ -143,13 +142,7 @@ class _CommandSelectLoop:
FreeCADGui.Selection.addSelection(obj, f"Edge{objEdges.index(eo) + 1}")
return
# Final fallback
if FreeCAD.GuiUp:
QtGui.QMessageBox.information(
None,
QT_TRANSLATE_NOOP("CAM_SelectLoop", "Feature Completion"),
QT_TRANSLATE_NOOP("CAM_SelectLoop", "Closed loop detection failed."),
)
Path.Log.warning(translate("CAM_SelectLoop", "Closed loop detection failed."))
def formsPartOfALoop(self, obj, sub, names):
try: