Skip to content

Commit

Permalink
Merge pull request #419 from jchanvfx/bug_fixes
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
jchanvfx authored May 15, 2024
2 parents 93e0874 + 0605a66 commit 8c634a3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions NodeGraphQt/base/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1920,6 +1920,9 @@ def default(obj):
default=default
)

# update the current session.
self._model.session = file_path

def load_session(self, file_path):
"""
Load node graph session layout file.
Expand Down
1 change: 0 additions & 1 deletion NodeGraphQt/custom_widgets/nodes_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def _build_tree(self):
Populate the node tree.
"""
self.clear()
palette = QtGui.QPalette()
categories = set()
node_types = {}
for name, node_ids in self._factory.names.items():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ def add_node(self, node):
if self.limit() == 0 or self._lock:
return

rows = self._prop_list.rowCount()
rows = self._prop_list.rowCount() - 1
if rows >= self.limit():
self._prop_list.removeRow(rows - 1)

Expand Down
2 changes: 1 addition & 1 deletion NodeGraphQt/pkg_info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
__version__ = '0.6.35'
__version__ = '0.6.36'
__status__ = 'Work in Progress'
__license__ = 'MIT'

Expand Down
6 changes: 3 additions & 3 deletions NodeGraphQt/widgets/viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ class NodeViewer(QtWidgets.QGraphicsView):
# node viewer signals.
# (some of these signals are called by port & node items and connected
# to the node graph slot functions)
moved_nodes = QtCore.Signal(dict)
moved_nodes = QtCore.Signal(object)
search_triggered = QtCore.Signal(str, tuple)
connection_sliced = QtCore.Signal(list)
connection_changed = QtCore.Signal(list, list)
insert_node = QtCore.Signal(object, str, dict)
insert_node = QtCore.Signal(object, str, object)
node_name_changed = QtCore.Signal(str, str)
node_backdrop_updated = QtCore.Signal(str, str, object)

# pass through signals that are translated into "NodeGraph()" signals.
node_selected = QtCore.Signal(str)
node_selection_changed = QtCore.Signal(list, list)
node_double_clicked = QtCore.Signal(str)
data_dropped = QtCore.Signal(QtCore.QMimeData, QtCore.QPoint)
data_dropped = QtCore.Signal(QtCore.QMimeData, object)
context_menu_prompt = QtCore.Signal(str, object)

def __init__(self, parent=None, undo_stack=None):
Expand Down

0 comments on commit 8c634a3

Please sign in to comment.