Skip to content

Commit 8c634a3

Browse files
authored
Merge pull request #419 from jchanvfx/bug_fixes
Bug fixes
2 parents 93e0874 + 0605a66 commit 8c634a3

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

NodeGraphQt/base/graph.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,6 +1920,9 @@ def default(obj):
19201920
default=default
19211921
)
19221922

1923+
# update the current session.
1924+
self._model.session = file_path
1925+
19231926
def load_session(self, file_path):
19241927
"""
19251928
Load node graph session layout file.

NodeGraphQt/custom_widgets/nodes_tree.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def _build_tree(self):
7878
Populate the node tree.
7979
"""
8080
self.clear()
81-
palette = QtGui.QPalette()
8281
categories = set()
8382
node_types = {}
8483
for name, node_ids in self._factory.names.items():

NodeGraphQt/custom_widgets/properties_bin/node_property_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ def add_node(self, node):
798798
if self.limit() == 0 or self._lock:
799799
return
800800

801-
rows = self._prop_list.rowCount()
801+
rows = self._prop_list.rowCount() - 1
802802
if rows >= self.limit():
803803
self._prop_list.removeRow(rows - 1)
804804

NodeGraphQt/pkg_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
3-
__version__ = '0.6.35'
3+
__version__ = '0.6.36'
44
__status__ = 'Work in Progress'
55
__license__ = 'MIT'
66

NodeGraphQt/widgets/viewer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ class NodeViewer(QtWidgets.QGraphicsView):
3838
# node viewer signals.
3939
# (some of these signals are called by port & node items and connected
4040
# to the node graph slot functions)
41-
moved_nodes = QtCore.Signal(dict)
41+
moved_nodes = QtCore.Signal(object)
4242
search_triggered = QtCore.Signal(str, tuple)
4343
connection_sliced = QtCore.Signal(list)
4444
connection_changed = QtCore.Signal(list, list)
45-
insert_node = QtCore.Signal(object, str, dict)
45+
insert_node = QtCore.Signal(object, str, object)
4646
node_name_changed = QtCore.Signal(str, str)
4747
node_backdrop_updated = QtCore.Signal(str, str, object)
4848

4949
# pass through signals that are translated into "NodeGraph()" signals.
5050
node_selected = QtCore.Signal(str)
5151
node_selection_changed = QtCore.Signal(list, list)
5252
node_double_clicked = QtCore.Signal(str)
53-
data_dropped = QtCore.Signal(QtCore.QMimeData, QtCore.QPoint)
53+
data_dropped = QtCore.Signal(QtCore.QMimeData, object)
5454
context_menu_prompt = QtCore.Signal(str, object)
5555

5656
def __init__(self, parent=None, undo_stack=None):

0 commit comments

Comments
 (0)