mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Per object tool now also triggers recenter
CURA-2401
This commit is contained in:
parent
789db04d03
commit
cf06a918a8
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@ from UM.Application import Application
|
||||||
from UM.Preferences import Preferences
|
from UM.Preferences import Preferences
|
||||||
from cura.Settings.SettingOverrideDecorator import SettingOverrideDecorator
|
from cura.Settings.SettingOverrideDecorator import SettingOverrideDecorator
|
||||||
from cura.Settings.ExtruderManager import ExtruderManager
|
from cura.Settings.ExtruderManager import ExtruderManager
|
||||||
|
from UM.Event import Event
|
||||||
|
|
||||||
|
|
||||||
## This tool allows the user to add & change settings per node in the scene.
|
## This tool allows the user to add & change settings per node in the scene.
|
||||||
|
@ -31,6 +32,9 @@ class PerObjectSettingsTool(Tool):
|
||||||
self._onGlobalContainerChanged()
|
self._onGlobalContainerChanged()
|
||||||
|
|
||||||
def event(self, event):
|
def event(self, event):
|
||||||
|
super().event(event)
|
||||||
|
if event.type == Event.MousePressEvent and self._controller.getToolsEnabled():
|
||||||
|
self.operationStopped.emit(self)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def getSelectedObjectId(self):
|
def getSelectedObjectId(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue