style cleanup: nodes

This commit is contained in:
2013-05-27 07:57:17 +00:00
parent ac0a8af414
commit d612fc0426
69 changed files with 513 additions and 524 deletions

View File

@@ -67,10 +67,10 @@ static int shader_tree_poll(const bContext *C, bNodeTreeType *UNUSED(treetype))
{
Scene *scene = CTX_data_scene(C);
/* allow empty engine string too, this is from older versions that didn't have registerable engines yet */
return (scene->r.engine[0] == '\0'
|| strcmp(scene->r.engine, "BLENDER_RENDER")==0
|| strcmp(scene->r.engine, "BLENDER_GAME")==0
|| strcmp(scene->r.engine, "CYCLES")==0);
return (scene->r.engine[0] == '\0' ||
STREQ(scene->r.engine, "BLENDER_RENDER") ||
STREQ(scene->r.engine, "BLENDER_GAME") ||
STREQ(scene->r.engine, "CYCLES"));
}
static void shader_get_from_context(const bContext *C, bNodeTreeType *UNUSED(treetype), bNodeTree **r_ntree, ID **r_id, ID **r_from)