mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Added documentation
This commit is contained in:
parent
2ed518c47e
commit
1ae69b25fa
2 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,8 @@ from UM.Logger import Logger
|
|||
|
||||
from cura.SettingOverrideDecorator import SettingOverrideDecorator
|
||||
|
||||
|
||||
## The per object setting visibility handler ensures that only setting defintions that have a matching instance Container
|
||||
# are returned as visible.
|
||||
class PerObjectSettingVisibilityHandler(QObject):
|
||||
def __init__(self, parent = None, *args, **kwargs):
|
||||
super().__init__(parent = parent, *args, **kwargs)
|
||||
|
|
|
@ -7,6 +7,8 @@ from UM.Application import Application
|
|||
from UM.Preferences import Preferences
|
||||
|
||||
|
||||
## This tool allows the user to add & change settings per node in the scene.
|
||||
# The settings per object are kept in a ContainerStack, which is linked to a node by decorator.
|
||||
class PerObjectSettingsTool(Tool):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
|
@ -40,9 +42,6 @@ class PerObjectSettingsTool(Tool):
|
|||
except AttributeError:
|
||||
return ""
|
||||
|
||||
def setContainerID(self, value):
|
||||
pass
|
||||
|
||||
def _onPreferenceChanged(self, preference):
|
||||
if preference == "cura/active_mode":
|
||||
enabled = Preferences.getInstance().getValue(preference)==1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue