diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-25 13:02:20 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-06-25 13:02:20 +0300 |
commit | f33cb522dd5793c685dcd681f7c7e13ff60f920a (patch) | |
tree | 14ab8b3debc5b2c605c6f530f8e97e0d76e1d2db /source/blender/nodes/composite | |
parent | b09387c38874bef39ff1b6eb7f12b3ee89f29f48 (diff) |
Cleanup: Few more validation of G_MAIN usages...
Diffstat (limited to 'source/blender/nodes/composite')
-rw-r--r-- | source/blender/nodes/composite/node_composite_tree.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/nodes/composite/node_composite_tree.c b/source/blender/nodes/composite/node_composite_tree.c index ab9d041198c..1312b764546 100644 --- a/source/blender/nodes/composite/node_composite_tree.c +++ b/source/blender/nodes/composite/node_composite_tree.c @@ -280,7 +280,10 @@ void ntreeCompositTagRender(Scene *curscene) { Scene *sce; - for (sce = G.main->scene.first; sce; sce = sce->id.next) { + /* XXX Think using G_MAIN here is valid, since you want to update current file's scene nodes, + * not the ones in temp main generated for rendering? + * This is still rather weak though, ideally render struct would store own main AND original G_MAIN... */ + for (sce = G_MAIN->scene.first; sce; sce = sce->id.next) { if (sce->nodetree) { bNode *node; |