#203 don't link a node to itself
This commit is contained in:
+1
-1
@@ -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 }
|
||||
|
||||
|
||||
@@ -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
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user