mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 20:45:35 +01:00
- [Preview Window] Fix crash when previewing node with no output junction.
This commit is contained in:
parent
0ed5a6568f
commit
7770730b14
@ -65,11 +65,8 @@ function Panel_Preview_Window() : PanelContent() constructor {
|
||||
draw_clear(COLORS.panel_bg_clear);
|
||||
draw_sprite_tiled_ext(s_transparent, 0, 0, 0, 1, 1, COLORS.panel_preview_transparent, 1);
|
||||
|
||||
var surf = node_target.outputs[| preview_channel].getValue();
|
||||
if(is_array(surf))
|
||||
surf = array_spread(surf);
|
||||
else
|
||||
surf = [ surf ];
|
||||
var surf = node_target.getPreviewValues();
|
||||
surf = is_array(surf)? array_spread(surf) : [ surf ];
|
||||
|
||||
var dx = 0;
|
||||
var dy = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user