mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-31 07:17:31 +01:00
[Path Weight Adjust] Fix curve display update delay.
This commit is contained in:
parent
f9dd0fca05
commit
ce06db8f8f
2 changed files with 5 additions and 4 deletions
Binary file not shown.
|
@ -32,7 +32,8 @@ function Node_Path_Weight_Adjust(_x, _y, _group = noone) : Node(_x, _y, _group)
|
||||||
temp_p = new __vec2P();
|
temp_p = new __vec2P();
|
||||||
|
|
||||||
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {
|
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {
|
||||||
if(curr_path && struct_has(curr_path, "drawOverlay")) curr_path.drawOverlay(hover, active, _x, _y, _s, _mx, _my, _snx, _sny);
|
if(curr_path && struct_has(curr_path, "drawOverlay"))
|
||||||
|
curr_path.drawOverlay(hover, active, _x, _y, _s, _mx, _my, _snx, _sny);
|
||||||
}
|
}
|
||||||
|
|
||||||
static getLineCount = function( ) /*=>*/ {return is_path? curr_path.getLineCount() : 1};
|
static getLineCount = function( ) /*=>*/ {return is_path? curr_path.getLineCount() : 1};
|
||||||
|
@ -70,9 +71,9 @@ function Node_Path_Weight_Adjust(_x, _y, _group = noone) : Node(_x, _y, _group)
|
||||||
var _type = getInputData(4);
|
var _type = getInputData(4);
|
||||||
var _curve_range = getInputData(5);
|
var _curve_range = getInputData(5);
|
||||||
|
|
||||||
inputs[2].setVisible(curr_type == 0);
|
inputs[2].setVisible(_type == 0);
|
||||||
inputs[3].setVisible(curr_type == 1);
|
inputs[3].setVisible(_type == 1);
|
||||||
inputs[5].setVisible(curr_type == 1);
|
inputs[5].setVisible(_type == 1);
|
||||||
|
|
||||||
curr_path = _path;
|
curr_path = _path;
|
||||||
curr_mode = _mode;
|
curr_mode = _mode;
|
||||||
|
|
Loading…
Reference in a new issue