From 8e063aa6119e3118540b84475070d10851ead068 Mon Sep 17 00:00:00 2001 From: Johnny Chan Date: Wed, 15 May 2024 11:27:32 +1200 Subject: [PATCH 1/6] property bin bug fix. --- .../custom_widgets/properties_bin/node_property_widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeGraphQt/custom_widgets/properties_bin/node_property_widgets.py b/NodeGraphQt/custom_widgets/properties_bin/node_property_widgets.py index 9c8941d9..da607740 100644 --- a/NodeGraphQt/custom_widgets/properties_bin/node_property_widgets.py +++ b/NodeGraphQt/custom_widgets/properties_bin/node_property_widgets.py @@ -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) From 53f2bfe37cec50731d4bd59cd97939722ee91b62 Mon Sep 17 00:00:00 2001 From: Johnny Chan Date: Wed, 15 May 2024 11:30:10 +1200 Subject: [PATCH 2/6] session save bug fix. --- NodeGraphQt/base/graph.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NodeGraphQt/base/graph.py b/NodeGraphQt/base/graph.py index 16328e69..80d582ce 100644 --- a/NodeGraphQt/base/graph.py +++ b/NodeGraphQt/base/graph.py @@ -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. From 12782e76c499e601e713869a4c9519c9cab36db7 Mon Sep 17 00:00:00 2001 From: Johnny Chan Date: Wed, 15 May 2024 11:47:32 +1200 Subject: [PATCH 3/6] bug fixes #418. --- NodeGraphQt/custom_widgets/nodes_tree.py | 1 - NodeGraphQt/widgets/viewer.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/NodeGraphQt/custom_widgets/nodes_tree.py b/NodeGraphQt/custom_widgets/nodes_tree.py index fe2a87c1..e88a86ef 100644 --- a/NodeGraphQt/custom_widgets/nodes_tree.py +++ b/NodeGraphQt/custom_widgets/nodes_tree.py @@ -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(): diff --git a/NodeGraphQt/widgets/viewer.py b/NodeGraphQt/widgets/viewer.py index 5c191927..a021aba8 100644 --- a/NodeGraphQt/widgets/viewer.py +++ b/NodeGraphQt/widgets/viewer.py @@ -50,7 +50,7 @@ class NodeViewer(QtWidgets.QGraphicsView): 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(object) context_menu_prompt = QtCore.Signal(str, object) def __init__(self, parent=None, undo_stack=None): From e3514587363f0fa90c764f6dec291ebd8ad7aed4 Mon Sep 17 00:00:00 2001 From: Johnny Chan Date: Wed, 15 May 2024 11:52:04 +1200 Subject: [PATCH 4/6] signal bug fixes #416. --- NodeGraphQt/widgets/viewer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NodeGraphQt/widgets/viewer.py b/NodeGraphQt/widgets/viewer.py index a021aba8..a2db965b 100644 --- a/NodeGraphQt/widgets/viewer.py +++ b/NodeGraphQt/widgets/viewer.py @@ -38,11 +38,11 @@ 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) From ba0b5c6b9d69bb51bdbb02a2da11f45bf6d08935 Mon Sep 17 00:00:00 2001 From: Johnny Chan Date: Wed, 15 May 2024 11:53:33 +1200 Subject: [PATCH 5/6] version bump --- NodeGraphQt/pkg_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeGraphQt/pkg_info.py b/NodeGraphQt/pkg_info.py index 1b18a567..cfb011d6 100644 --- a/NodeGraphQt/pkg_info.py +++ b/NodeGraphQt/pkg_info.py @@ -1,6 +1,6 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -__version__ = '0.6.35' +__version__ = '0.6.36' __status__ = 'Work in Progress' __license__ = 'MIT' From 0605a66074110dae8bd37fff9aa79a7104eaf71a Mon Sep 17 00:00:00 2001 From: Johnny Chan Date: Wed, 15 May 2024 11:55:10 +1200 Subject: [PATCH 6/6] opps minor revert --- NodeGraphQt/widgets/viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeGraphQt/widgets/viewer.py b/NodeGraphQt/widgets/viewer.py index a2db965b..caa358e4 100644 --- a/NodeGraphQt/widgets/viewer.py +++ b/NodeGraphQt/widgets/viewer.py @@ -50,7 +50,7 @@ class NodeViewer(QtWidgets.QGraphicsView): node_selected = QtCore.Signal(str) node_selection_changed = QtCore.Signal(list, list) node_double_clicked = QtCore.Signal(str) - data_dropped = QtCore.Signal(object) + data_dropped = QtCore.Signal(QtCore.QMimeData, object) context_menu_prompt = QtCore.Signal(str, object) def __init__(self, parent=None, undo_stack=None):