Skip to content

Commit eb86fa2

Browse files
committed
bug fixes
1 parent 233efb7 commit eb86fa2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

NodeGraphQt/base/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def create_property(self, name, value, items=None, range=None,
326326
name (str): name of the property.
327327
value (object): data.
328328
items (list[str]): items used by widget type ``NODE_PROP_QCOMBO``
329-
range (tuple)): ``(min, max)`` values used by ``NODE_PROP_SLIDER``
329+
range (tuple or list): ``(min, max)`` values used by ``NODE_PROP_SLIDER``
330330
widget_type (int): widget flag to display in the
331331
:class:`NodeGraphQt.PropertiesBinWidget`
332332
tab (str): name of the widget tab to display in the properties bin.

NodeGraphQt/custom_widgets/properties.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,8 @@ def get_value(self):
683683

684684
def set_value(self, value):
685685
if value != self.get_value():
686-
self._value = value.copy()
686+
# cast a new list.
687+
self._value = list(value)
687688
self._can_emit = False
688689
self._update_items()
689690
self._can_emit = True

NodeGraphQt/custom_widgets/properties_bin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ def __init__(self, parent=None, node_graph=None):
107107
self._block_signal = False
108108

109109
self._lock = False
110-
self.btn_lock = QtWidgets.QPushButton('lock')
110+
self.btn_lock = QtWidgets.QPushButton('Lock')
111111
self.btn_lock.setToolTip(
112112
'Lock the properties bin prevent nodes from being loaded.')
113113
self.btn_lock.clicked.connect(self.lock_bin)
114114

115-
btn_clr = QtWidgets.QPushButton('clear')
115+
btn_clr = QtWidgets.QPushButton('Clear')
116116
btn_clr.setToolTip('Clear the properties bin.')
117117
btn_clr.clicked.connect(self.clear_bin)
118118

0 commit comments

Comments
 (0)