[BIM] Fix Runtime Error when creating Wall (#21862)

* [BIM] Fix Runtime Error when creating Wall

* [BIM] Fix continueMode functionality for Wall, Panel and Structure
This commit is contained in:
Syres916
2025-06-23 12:59:13 +01:00
committed by GitHub
parent d35b638039
commit f674589fbe
3 changed files with 11 additions and 3 deletions

View File

@@ -424,7 +424,7 @@ class _CommandStructure:
self.doc.recompute()
# gui_utils.end_all_events() # Causes a crash on Linux.
self.tracker.finalize()
if FreeCADGui.draftToolBar.continueCmd.isChecked():
if FreeCADGui.draftToolBar.continueMode:
self.Activated()
def _createItemlist(self, baselist):

View File

@@ -127,7 +127,15 @@ class Arch_Panel:
FreeCADGui.doCommand('s.Placement.Rotation = FreeCAD.Rotation(FreeCAD.Vector(1.00,0.00,0.00),90.00)')
self.doc.commitTransaction()
self.doc.recompute()
if FreeCADGui.draftToolBar.continueCmd.isChecked():
from PySide import QtCore
QtCore.QTimer.singleShot(100, self.check_continueMode)
def check_continueMode(self):
"checks if continueMode is true and restarts Panel"
if FreeCADGui.draftToolBar.continueMode:
self.Activated()
def taskbox(self):

View File

@@ -192,7 +192,7 @@ class Arch_Wall:
self.doc.recompute()
# gui_utils.end_all_events() # Causes a crash on Linux.
self.tracker.finalize()
if FreeCADGui.draftToolBar.continueCmd.isChecked():
if FreeCADGui.draftToolBar.continueMode:
self.Activated()
def addDefault(self):