diff --git a/scripts/node_display_text/node_display_text.gml b/scripts/node_display_text/node_display_text.gml index f96b27799..ed44986bd 100644 --- a/scripts/node_display_text/node_display_text.gml +++ b/scripts/node_display_text/node_display_text.gml @@ -74,7 +74,7 @@ function Node_Display_Text(_x, _y, _group = noone) : Node(_x, _y, _group) constr UNDO_HOLDING = true; } #endregion - static button_reactive_update = function(key) { #region + static button_reactive_update = function() { #region ml_press = lerp_float(ml_press , 0, 10); ml_release = lerp_float(ml_release, 0, 10); ml_double = lerp_float(ml_double, 0, 10); diff --git a/scripts/node_value/node_value.gml b/scripts/node_value/node_value.gml index ad907c7f6..91602defc 100644 --- a/scripts/node_value/node_value.gml +++ b/scripts/node_value/node_value.gml @@ -1256,7 +1256,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru updateColor(); } resetDisplay(); #endregion - static updateColor = function(val) { #region + static updateColor = function(val = undefined) { #region INLINE if(color == -1) { diff --git a/scripts/panel_graph/panel_graph.gml b/scripts/panel_graph/panel_graph.gml index c9727e431..368413f3b 100644 --- a/scripts/panel_graph/panel_graph.gml +++ b/scripts/panel_graph/panel_graph.gml @@ -894,7 +894,8 @@ function Panel_Graph(project = PROJECT) : PanelContent() constructor { printIf(log, $"Draw active: {get_timer() - t}"); t = get_timer(); #region draw connections - var aa = min(8192 / w, 8192 / h, PREFERENCES.connection_line_aa); + var aa = floor(min(8192 / w, 8192 / h, PREFERENCES.connection_line_aa)); + connection_surface = surface_verify(connection_surface, w * aa, h * aa); connection_surface_aa = surface_verify(connection_surface_aa, w, h); surface_set_target(connection_surface); @@ -945,17 +946,19 @@ function Panel_Graph(project = PROJECT) : PanelContent() constructor { } surface_reset_target(); - + + gpu_set_texfilter(true); surface_set_shader(connection_surface_aa, sh_downsample); shader_set_f("down", aa); shader_set_dim("dimension", connection_surface); draw_surface(connection_surface, 0, 0); surface_reset_shader(); - + gpu_set_texfilter(false); + BLEND_ALPHA_MULP draw_surface(connection_surface_aa, 0, 0); BLEND_NORMAL - + junction_hovering = (node_hovering == noone && !is_struct(node_hovering))? hov : noone; value_focus = noone; #endregion