Fix T60263: render layer node sockets not showing on file load, for some files.
This commit is contained in:
parent
f9cefc4d17
commit
152c965b75
Notes:
blender-bot
2023-02-14 07:31:34 +01:00
Referenced by issue #60263, Cycles - Output sockets and connections are not shown
|
@ -812,8 +812,10 @@ void RE_engine_register_pass(struct RenderEngine *engine, struct Scene *scene, s
|
|||
* and check whether their nodetree has a node that needs to be updated. */
|
||||
/* NOTE: using G_MAIN seems valid here,
|
||||
* unless we want to register that for every other temp Main we could generate??? */
|
||||
ntreeCompositRegisterPass(scene->nodetree, scene, view_layer, name, type);
|
||||
|
||||
for (Scene *sce = G_MAIN->scene.first; sce; sce = sce->id.next) {
|
||||
if (sce->nodetree) {
|
||||
if (sce->nodetree && sce != scene) {
|
||||
ntreeCompositRegisterPass(sce->nodetree, scene, view_layer, name, type);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue