Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgoringe committed Mar 3, 2024
1 parent 200bf47 commit 71a5b92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion js/use_everywhere.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ app.registerExtension({
}

/*
Hijack drawNode to render the virtual connections
Hijack drawNode to render the virtual connection points
and links to node with mouseOver
*/
const original_drawNode = LGraphCanvas.prototype.drawNode;
LGraphCanvas.prototype.drawNode = function(node, ctx) {
Expand Down
7 changes: 3 additions & 4 deletions js/use_everywhere_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,8 @@ class LinkRenderController {

highlight_ue_connections(node, ctx) {
if (!app.ui.settings.getSettingValue('AE.highlight', true)) return;
if (this.ue_list===undefined) {
this.request_link_list_update(); // list is out of date - ask for a new one
}
if (this.ue_list_reloading) return; // if we don't have one, return. This method gets called frequently!
if (this._ue_links_visible) return;
if (!this.list_ready()) return;

this.ue_list.all_connected_inputs(node).forEach((ue_connection) => {
if (!ue_connection.control_node) { // control node deleted...
Expand Down Expand Up @@ -197,6 +195,7 @@ class LinkRenderController {
render_all_ue_links(ctx) {
if (!this._ue_links_visible) return; // switched off
if (!this.list_ready()) return;
// can we repeat this after a second or something?
this.ue_list.all_ue_connections().forEach((ue_connection) => this.render_ue_link(ue_connection, ctx));
}

Expand Down

0 comments on commit 71a5b92

Please sign in to comment.