mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-12 07:16:49 +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
1 changed files with 3 additions and 12 deletions
|
@ -568,23 +568,14 @@ function Node_Collection(_x, _y, _group = noone) : Node(_x, _y, _group) construc
|
||||||
/////============ PREVIEW ============
|
/////============ PREVIEW ============
|
||||||
|
|
||||||
static getGraphPreviewSurface = function() {
|
static getGraphPreviewSurface = function() {
|
||||||
var _output_junc = outputs[| preview_channel];
|
|
||||||
|
|
||||||
for( var i = 0, n = array_length(nodes); i < n; i++ ) {
|
for( var i = 0, n = array_length(nodes); i < n; i++ ) {
|
||||||
if(!nodes[i].active) continue;
|
if(!nodes[i].active) continue;
|
||||||
if(is_instanceof(nodes[i], Node_Group_Thumbnail))
|
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;
|
var _fr = outputs[| preview_channel].from.inputs[| 0];
|
||||||
|
return _fr.value_from == noone? noone : _fr.value_from.node.getGraphPreviewSurface();
|
||||||
switch(_output_junc.type) {
|
|
||||||
case VALUE_TYPE.surface :
|
|
||||||
case VALUE_TYPE.dynaSurface :
|
|
||||||
return _output_junc.getValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
return noone;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPreviewingNode() {
|
function getPreviewingNode() {
|
||||||
|
|
Loading…
Reference in a new issue