mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-10 12:34:06 +01:00
- [Group] Previewing on preview panel and graph now use connected nodes context instead of its own. - [Group] Channel selection now affect preview (including 3D preview).
This commit is contained in:
parent
b86f5fe9fd
commit
121d3cd76b
@ -568,23 +568,14 @@ function Node_Collection(_x, _y, _group = noone) : Node(_x, _y, _group) construc
|
||||
/////============ PREVIEW ============
|
||||
|
||||
static getGraphPreviewSurface = function() {
|
||||
var _output_junc = outputs[| preview_channel];
|
||||
|
||||
for( var i = 0, n = array_length(nodes); i < n; i++ ) {
|
||||
if(!nodes[i].active) continue;
|
||||
if(is_instanceof(nodes[i], Node_Group_Thumbnail))
|
||||
_output_junc = nodes[i].inputs[| 0];
|
||||
return nodes[i].inputs[| 0].getValue();
|
||||
}
|
||||
|
||||
if(!is_instanceof(_output_junc, NodeValue)) return noone;
|
||||
|
||||
switch(_output_junc.type) {
|
||||
case VALUE_TYPE.surface :
|
||||
case VALUE_TYPE.dynaSurface :
|
||||
return _output_junc.getValue();
|
||||
}
|
||||
|
||||
return noone;
|
||||
var _fr = outputs[| preview_channel].from.inputs[| 0];
|
||||
return _fr.value_from == noone? noone : _fr.value_from.node.getGraphPreviewSurface();
|
||||
}
|
||||
|
||||
function getPreviewingNode() {
|
||||
|
Loading…
Reference in New Issue
Block a user