- in Fiducials Plugin added the support for ESCAPE key from manual mode and also exit by right clicking
This commit is contained in:
14
app_Main.py
14
app_Main.py
@@ -7238,16 +7238,7 @@ class App(QtCore.QObject):
|
||||
self.dx = pos[0] - float(self.rel_point1[0])
|
||||
self.dy = pos[1] - float(self.rel_point1[1])
|
||||
|
||||
# self.ui.position_label.setText(" <b>X</b>: %.4f "
|
||||
# "<b>Y</b>: %.4f " % (pos[0], pos[1]))
|
||||
# self.ui.rel_position_label.setText("<b>Dx</b>: %.4f <b>Dy</b>: "
|
||||
# "%.4f " % (self.dx, self.dy))
|
||||
self.ui.update_location_labels(self.dx, self.dy, pos[0], pos[1])
|
||||
|
||||
units = self.defaults["units"].lower()
|
||||
# self.plotcanvas.text_hud.text = \
|
||||
# 'Dx:\t{:<.4f} [{:s}]\nDy:\t{:<.4f} [{:s}]\n\nX: \t{:<.4f} [{:s}]\nY: \t{:<.4f} [{:s}]'.format(
|
||||
# self.dx, units, self.dy, units, pos[0], units, pos[1], units)
|
||||
self.plotcanvas.on_update_text_hud(self.dx, self.dy, pos[0], pos[1])
|
||||
|
||||
self.mouse = [pos[0], pos[1]]
|
||||
@@ -7256,6 +7247,11 @@ class App(QtCore.QObject):
|
||||
self.selection_type = None
|
||||
return
|
||||
|
||||
# the object selection on canvas does not work for App Tools or for Editors
|
||||
if self.call_source != 'app':
|
||||
self.selection_type = None
|
||||
return
|
||||
|
||||
# if the mouse is moved and the LMB is clicked then the action is a selection
|
||||
if self.event_is_dragging == 1 and event.button == 1:
|
||||
self.delete_selection_shape()
|
||||
|
||||
Reference in New Issue
Block a user