#203 don't link a node to itself

This commit is contained in:
Chris
2024-08-16 10:47:06 +10:00
parent a732f98cf6
commit 80c4e6fac9
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
from .use_everywhere import SeedEverywhere, AnythingEverywherePrompts
UE_VERSION = "5.0.1"
UE_VERSION = "5.0.2"
NODE_CLASS_MAPPINGS = { "Seed Everywhere": SeedEverywhere }
+1
View File
@@ -40,6 +40,7 @@ class UseEverywhere {
Does this broadcast match a given node,input?
*/
matches(node, input) {
if (this.output[0] == node.id) return false;
if (this.restrict_to && !this.restrict_to.includes(node.id)) return false;
const input_label = input.label ? input.label : input.name;
const node_label = node.title ? node.title : (node.properties['Node name for S&R'] ? node.properties['Node name for S&R'] : node.type);
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "cg-use-everywhere"
description = "A set of nodes that allow data to be 'broadcast' to some or all unconnected inputs. Greatly reduces link spaghetti."
version = "5.0.1"
version = "5.0.2"
license = { file = "LICENSE" }
[project.urls]