[HLSL] Manual compile now force render the node.

This commit is contained in:
Tanasart 2024-09-21 08:05:51 +07:00
parent 933dab87ec
commit af9866c0d0
2 changed files with 5 additions and 2 deletions

View File

@ -225,7 +225,10 @@ void main(in VertexShaderOutput _input, out PixelShaderOutput output) {
insp1UpdateTooltip = __txt("Compile");
insp1UpdateIcon = [ THEME.refresh_icon, 1, COLORS._main_value_positive ];
static onInspector1Update = function() { refreshShader(); }
static onInspector1Update = function() {
refreshShader();
triggerRender();
}
static step = function() { argument_renderer.showValue = input_display_list[9][1]; }

View File

@ -297,7 +297,7 @@ function Panel_Collection() : PanelContent() constructor {
}
if(_node.path == updated_path && updated_prog > 0)
draw_sprite_stretched_ext(THEME.node_glow_border, 0, _boxx - 9, yy - 9, grid_size + 18, grid_size + 18, COLORS._main_value_positive, updated_prog);
draw_sprite_stretched_ext(THEME.node_bg, 0, _boxx, yy, grid_size, grid_size, COLORS._main_value_positive, updated_prog);
if(variable_struct_exists(_node, "getSpr")) _node.getSpr();