mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 06:26:42 +01:00
- Fix error when loading the same project in the one session.
This commit is contained in:
parent
091e4156ac
commit
84e3b92891
2 changed files with 9 additions and 4 deletions
|
@ -106,6 +106,7 @@ function LOAD_AT(path, params = new __loadParams()) { #region
|
|||
|
||||
var temp_path = TEMPDIR;
|
||||
directory_verify(temp_path);
|
||||
ds_map_clear(APPEND_MAP);
|
||||
|
||||
var temp_file_path = TEMPDIR + string(UUID_generate(6));
|
||||
if(file_exists_empty(temp_file_path)) file_delete(temp_file_path);
|
||||
|
|
|
@ -574,21 +574,25 @@ function Node_Collection(_x, _y, _group = noone) : Node(_x, _y, _group) construc
|
|||
return nodes[i].inputs[| 0].getValue();
|
||||
}
|
||||
|
||||
var _fr = outputs[| preview_channel].from.inputs[| 0];
|
||||
var _oj = outputs[| preview_channel];
|
||||
if(is_undefined(_oj)) return noone;
|
||||
|
||||
var _fr = _oj.from.inputs[| 0];
|
||||
return _fr.value_from == noone? noone : _fr.value_from.node.getGraphPreviewSurface();
|
||||
}
|
||||
|
||||
function getPreviewingNode() {
|
||||
var _outJ = outputs[| preview_channel];
|
||||
var _oj = outputs[| preview_channel];
|
||||
if(is_undefined(_oj)) return self;
|
||||
|
||||
switch(_outJ.type) {
|
||||
switch(_oj.type) {
|
||||
case VALUE_TYPE.d3Mesh :
|
||||
case VALUE_TYPE.d3Camera :
|
||||
case VALUE_TYPE.d3Light :
|
||||
case VALUE_TYPE.d3Scene :
|
||||
case VALUE_TYPE.d3object :
|
||||
case VALUE_TYPE.sdf :
|
||||
var _fr = _outJ.from.inputs[| 0];
|
||||
var _fr = _oj.from.inputs[| 0];
|
||||
return _fr.value_from == noone? self : _fr.value_from.node;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue