[Bf-blender-cvs] [25cc656003d] blender-v3.3-release: Fix: Order of node mixins in custom nodes python template
Hans Goudey
noreply at git.blender.org
Mon Oct 3 13:21:18 CEST 2022
Commit: 25cc656003d1b42a88406a78e0cc74a163951136
Author: Hans Goudey
Date: Thu Sep 29 11:59:02 2022 -0500
Branches: blender-v3.3-release
https://developer.blender.org/rB25cc656003d1b42a88406a78e0cc74a163951136
Fix: Order of node mixins in custom nodes python template
See T101259. This order makes the poll not work, even when called from
Python. The bundled template shouldn't be a source of errors for node
addons.
===================================================================
M release/scripts/templates_py/custom_nodes.py
===================================================================
diff --git a/release/scripts/templates_py/custom_nodes.py b/release/scripts/templates_py/custom_nodes.py
index fba94e23d0d..fd2dfe91b39 100644
--- a/release/scripts/templates_py/custom_nodes.py
+++ b/release/scripts/templates_py/custom_nodes.py
@@ -61,7 +61,7 @@ class MyCustomTreeNode:
# Derived from the Node base type.
-class MyCustomNode(Node, MyCustomTreeNode):
+class MyCustomNode(MyCustomTreeNode, Node):
# === Basics ===
# Description string
'''A custom node'''
More information about the Bf-blender-cvs
mailing list