Skip to content

Commit

Permalink
persist the 'reject_ue' setting
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgoringe committed Aug 16, 2024
1 parent 1f56c38 commit a732f98
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .use_everywhere import SeedEverywhere, AnythingEverywherePrompts

UE_VERSION = "5.0"
UE_VERSION = "5.0.1"

NODE_CLASS_MAPPINGS = { "Seed Everywhere": SeedEverywhere }

Expand Down
2 changes: 1 addition & 1 deletion js/use_everywhere_graph_analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class GraphAnalyser {
// Look for unconnected inputs and see if we can connect them
live_nodes.filter((node) => !is_UEnode(node)).forEach(node => {
const nd = get_real_node(node.id, Logger.INFORMATION);
if (nd && !nd.rejects_ue_links) {
if (nd && !nd.properties.rejects_ue_links) {
var gpData = GroupNodeHandler.getGroupData(nd);
const isGrp = !!gpData;
const o2n = isGrp ? Object.entries(gpData.oldToNewInputMap) : null;
Expand Down
4 changes: 2 additions & 2 deletions js/use_everywhere_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ function non_ue_menu_settings(options, node) {
options.push(null);
options.push(
{
content: node.rejects_ue_links ? "Allow UE Links" : "Reject UE Links",
content: node.properties.rejects_ue_links ? "Allow UE Links" : "Reject UE Links",
has_submenu: false,
callback: () => { node.rejects_ue_links = !!!node.rejects_ue_links },
callback: () => { node.properties.rejects_ue_links = !!!node.properties.rejects_ue_links },
}
)
}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
version = "5.0.1"
license = { file = "LICENSE" }

[project.urls]
Expand Down

0 comments on commit a732f98

Please sign in to comment.