diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2008-02-10 06:40:24 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2008-02-10 06:40:24 +0300 |
commit | f46fcf7aab30fa2c905840e4ad0d4f1486994285 (patch) | |
tree | 0bce96c6bc3c9faa1814d561f4bc738cdebb23de /source/blender/src/drawnode.c | |
parent | 34ddfb03c1f2f77d09d02793e368cca5abf95e9c (diff) |
== PyNodes ==
1) Including the Add->Dynamic submenu in the Nodes window header. Previously pynodes could only be added via toolbox.
2) Disabling pynodes execution when using more than one thread for rendering. This prevents the crashes while a proper fix isn't implemented.
Diffstat (limited to 'source/blender/src/drawnode.c')
-rw-r--r-- | source/blender/src/drawnode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/drawnode.c b/source/blender/src/drawnode.c index d85e3199fb3..54475eb362e 100644 --- a/source/blender/src/drawnode.c +++ b/source/blender/src/drawnode.c @@ -798,6 +798,11 @@ static int node_shader_buts_dynamic(uiBlock *block, bNodeTree *ntree, bNode *nod ui_rasterpos_safe(butr->xmin + xoff, butr->ymin + 5, snode->aspect); snode_drawstring(snode, "Error! Check console...", butr->xmax - butr->xmin); } + else if (G.scene->r.threads > 1) { + BIF_ThemeColor(TH_REDALERT); + ui_rasterpos_safe(butr->xmin + xoff, butr->ymin + 5, snode->aspect); + snode_drawstring(snode, "Set threads to 1", butr->xmax - butr->xmin); + } } } return 20+19; |