diff options
Diffstat (limited to 'source/blender/editors/render/render_update.c')
-rw-r--r-- | source/blender/editors/render/render_update.c | 44 |
1 files changed, 11 insertions, 33 deletions
diff --git a/source/blender/editors/render/render_update.c b/source/blender/editors/render/render_update.c index cd55b91cb6b..08ccf37265b 100644 --- a/source/blender/editors/render/render_update.c +++ b/source/blender/editors/render/render_update.c @@ -224,12 +224,8 @@ static void material_changed(Main *bmain, Material *ma) /* find node materials using this */ for (parent = bmain->mat.first; parent; parent = parent->id.next) { - if (parent->use_nodes && parent->nodetree && nodes_use_material(parent->nodetree, ma)) { - /* pass */ - } - else { - continue; - } + if (parent->use_nodes && parent->nodetree && nodes_use_material(parent->nodetree, ma)) ; + else continue; BKE_icon_changed(BKE_icon_getid(&parent->id)); @@ -251,15 +247,9 @@ static void texture_changed(Main *bmain, Tex *tex) /* find materials */ for (ma = bmain->mat.first; ma; ma = ma->id.next) { - if (mtex_use_tex(ma->mtex, MAX_MTEX, tex)) { - /* pass */ - } - else if (ma->use_nodes && ma->nodetree && nodes_use_tex(ma->nodetree, tex)) { - /* pass */ - } - else { - continue; - } + if (mtex_use_tex(ma->mtex, MAX_MTEX, tex)) ; + else if (ma->use_nodes && ma->nodetree && nodes_use_tex(ma->nodetree, tex)) ; + else continue; BKE_icon_changed(BKE_icon_getid(&ma->id)); @@ -269,30 +259,18 @@ static void texture_changed(Main *bmain, Tex *tex) /* find lamps */ for (la = bmain->lamp.first; la; la = la->id.next) { - if (mtex_use_tex(la->mtex, MAX_MTEX, tex)) { - /* pass */ - } - else if (la->nodetree && nodes_use_tex(la->nodetree, tex)) { - /* pass */ - } - else { - continue; - } + if (mtex_use_tex(la->mtex, MAX_MTEX, tex)) ; + else if (la->nodetree && nodes_use_tex(la->nodetree, tex)) ; + else continue; BKE_icon_changed(BKE_icon_getid(&la->id)); } /* find worlds */ for (wo = bmain->world.first; wo; wo = wo->id.next) { - if (mtex_use_tex(wo->mtex, MAX_MTEX, tex)) { - /* pass */ - } - else if (wo->nodetree && nodes_use_tex(wo->nodetree, tex)) { - /* pass */ - } - else { - continue; - } + if (mtex_use_tex(wo->mtex, MAX_MTEX, tex)) ; + else if (wo->nodetree && nodes_use_tex(wo->nodetree, tex)) ; + else continue; BKE_icon_changed(BKE_icon_getid(&wo->id)); } |