Draft: fix 2 issues with Draft_SelectPlane

This commit is contained in:
Roy-043
2025-08-24 17:14:01 +02:00
committed by Yorik van Havre
parent cd1496be75
commit ba7bb0eabe

View File

@@ -39,7 +39,7 @@ from drafttaskpanels import task_selectplane
from draftutils import gui_utils
from draftutils import params
from draftutils import utils
from draftutils.messages import _msg
from draftutils.messages import _toolmsg
from draftutils.todo import todo
from draftutils.translate import translate
@@ -150,7 +150,7 @@ class Draft_SelectPlane:
# Execute the actual task panel delayed to catch possible active Draft command
todo.delay(Gui.Control.showDialog, self.taskd)
todo.delay(form.setFocus, None)
_msg(translate(
_toolmsg(translate(
"draft",
"Select 3 vertices, one or more shapes or an object to define a working plane"))
self.call = self.view.addEventCallback("SoEvent", self.action)
@@ -179,7 +179,7 @@ class Draft_SelectPlane:
if arg["Type"] == "SoKeyboardEvent" and arg["Key"] == "ESCAPE":
self.reject()
if arg["Type"] == "SoMouseButtonEvent" \
and (arg["State"] == "DOWN") \
and (arg["State"] == "UP") \
and (arg["Button"] == "BUTTON1"):
self.check_selection()