[Canvas group] Fix error on creation.

This commit is contained in:
Tanasart 2024-11-14 15:19:03 +07:00
parent af6aa7d533
commit 72c1b8ec7a
2 changed files with 10 additions and 8 deletions

View file

@ -16,10 +16,12 @@ event_inherited();
server = network_create_server_raw(network_socket_ws, port, 32);
} until(server >= 0 || attmp++ >= 100);
if(!IS_PATREON) {
var _url = @"www.patreon.com/oauth2/authorize?response_type=code
&client_id=oZ1PNvUY61uH0FiA7ZPMBy77Xau3Ok9tfvsT_Y8DQwyKeMNjaVC35r1qsK09QJhY
&redirect_uri=https://pixel-composer.com/verify";
&client_id=oZ1PNvUY61uH0FiA7ZPMBy77Xau3Ok9tfvsT_Y8DQwyKeMNjaVC35r1qsK09QJhY
&redirect_uri=https://pixel-composer.com/verify";
_url += $"&state={port}";
url_open(_url);
}
#endregion

View file

@ -246,8 +246,8 @@ function Node_Canvas_Group(_x, _y, _group) : Node_Collection(_x, _y, _group) con
_output.inputs[0].setFrom(_compose.outputs[0]);
}
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny) {
if(canvas_sel) canvas_sel.drawOverlay(hover, active, _x, _y, _s, _mx, _my, _snx, _sny);
static drawOverlay = function(hover, active, _x, _y, _s, _mx, _my, _snx, _sny, params) {
if(canvas_sel) canvas_sel.drawOverlay(hover, active, _x, _y, _s, _mx, _my, _snx, _sny, params);
}
static drawTools = function(_mx, _my, xx, yy, tool_size, hover, focus) {