Skip to content

Commit f998135

Browse files
committed
small fix
1 parent 43038e7 commit f998135

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

NodeGraphQt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
3131
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232
"""
33-
**NodeGraphQt** is a node graph Framework that can be implemented and re purposed
33+
**NodeGraphQt** is a node graph framework that can be implemented and re purposed
3434
into applications that supports **PySide2**.
3535
3636
project: https://github.com/jchanvfx/NodeGraphQt

NodeGraphQt/base/graph.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def add_node(self, node, pos=None):
748748
node_attrs[node.type_][pname].update(pattrs)
749749
self.model.set_node_common_properties(node_attrs)
750750

751-
node._graph = self
751+
node.set_graph(self)
752752
node.NODE_NAME = self.get_unique_name(node.NODE_NAME)
753753
node.model._graph_model = self.model
754754
node.model.name = node.NODE_NAME
@@ -980,6 +980,7 @@ def _deserialize(self, data, relative_pos=False, pos=None):
980980

981981
nodes[n_id] = node
982982
self.add_node(node, n_data.get('pos'))
983+
node.set_graph(self)
983984

984985
# build the connections.
985986
for connection in data.get('connections', []):

NodeGraphQt/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from .pkg_info import __version__
55
from NodeGraphQt import QtWidgets
66

7-
#: Current version of the NodeGraphQt Framework.
7+
#: Current version of the NodeGraphQt framework.
88
VERSION = __version__
99

1010
# === PIPE ===

0 commit comments

Comments
 (0)