From f3dd6b8df23f3634cafe8aa9fdf54b9cf3eac1c1 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Mon, 12 May 2014 10:20:20 +0200 Subject: Cleanup: Some else if for attribute code. --- intern/cycles/render/scene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/cycles/render/scene.cpp') diff --git a/intern/cycles/render/scene.cpp b/intern/cycles/render/scene.cpp index 686a1bc406e..4f5ad439520 100644 --- a/intern/cycles/render/scene.cpp +++ b/intern/cycles/render/scene.cpp @@ -236,9 +236,9 @@ bool Scene::need_global_attribute(AttributeStandard std) { if(std == ATTR_STD_UV) return Pass::contains(film->passes, PASS_UV); - if(std == ATTR_STD_MOTION_VERTEX_POSITION) + else if(std == ATTR_STD_MOTION_VERTEX_POSITION) return need_motion() != MOTION_NONE; - if(std == ATTR_STD_MOTION_VERTEX_NORMAL) + else if(std == ATTR_STD_MOTION_VERTEX_NORMAL) return need_motion() == MOTION_BLUR; return false; -- cgit v1.2.3