Added documentation

This commit is contained in:
Jaime van Kessel 2016-06-02 16:07:09 +02:00
parent 2ed518c47e
commit 1ae69b25fa
2 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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