mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-24 14:06:23 +01:00
- [Canvas] Fix draw layer, mirror button behave weirdly.
This commit is contained in:
parent
c79b2abfef
commit
118e23700a
1 changed files with 2 additions and 2 deletions
|
@ -234,7 +234,7 @@ function Node_Canvas(_x, _y, _group = noone) : Node(_x, _y, _group) constructor
|
|||
|
||||
#region ++++ tools ++++
|
||||
tool_attribute.channel = [ true, true, true, true ];
|
||||
tool_channel_edit = new checkBoxGroup(THEME.tools_canvas_channel, function(ind, val) { tool_attribute.channel[ind] = val; });
|
||||
tool_channel_edit = new checkBoxGroup(THEME.tools_canvas_channel, function(val, ind) { tool_attribute.channel[ind] = val; });
|
||||
|
||||
tool_attribute.drawLayer = 0;
|
||||
tool_attribute.pickColor = c_white;
|
||||
|
@ -243,7 +243,7 @@ function Node_Canvas(_x, _y, _group = noone) : Node(_x, _y, _group) constructor
|
|||
.setCollape(false);
|
||||
|
||||
tool_attribute.mirror = [ false, false, false ];
|
||||
tool_mirror_edit = new checkBoxGroup( THEME.canvas_mirror, function(ind, val) { tool_attribute.mirror[ind] = val; })
|
||||
tool_mirror_edit = new checkBoxGroup( THEME.canvas_mirror, function(val, ind) { tool_attribute.mirror[ind] = val; })
|
||||
.setTooltips( [ "Toggle diagonal", "", "" ] );
|
||||
|
||||
tool_settings = [ [ "", tool_channel_edit, "channel", tool_attribute ],
|
||||
|
|
Loading…
Reference in a new issue