[Line] Fix error when previewing array of paths.

This commit is contained in:
Tanasart 2025-02-02 10:10:07 +07:00
parent a08fdc5bb9
commit b452ac8232
2 changed files with 1 additions and 2 deletions

Binary file not shown.

View file

@ -1882,8 +1882,7 @@ function NodeValue(_name, _node, _connect, _type, _value, _tooltip = "") constru
case VALUE_TYPE.pathnode : case VALUE_TYPE.pathnode :
var _path = getValue(); var _path = getValue();
if(struct_has(_path, "drawOverlay")) if(is_struct(_path) && struct_has(_path, "drawOverlay")) return _path.drawOverlay(hover, active, _x, _y, _s, _mx, _my, _snx, _sny);
return _path.drawOverlay(hover, active, _x, _y, _s, _mx, _my, _snx, _sny);
break; break;
} }