Fix cycles too slow export of meshes with uvs when a motion vector pass is used.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 10 Sep 2013 15:12:53 +0000 (15:12 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 10 Sep 2013 15:12:53 +0000 (15:12 +0000)
intern/cycles/render/scene.cpp

index ce287f86b83be6af92a52b01d54b3f3dc13f0df9..52e355df3825641e6fe87377fdc8e027b8972230 100644 (file)
@@ -220,7 +220,7 @@ bool Scene::need_global_attribute(AttributeStandard std)
 {
        if(std == ATTR_STD_UV)
                return Pass::contains(film->passes, PASS_UV);
-       if(std == ATTR_STD_MOTION_PRE || ATTR_STD_MOTION_POST)
+       if(std == ATTR_STD_MOTION_PRE || std == ATTR_STD_MOTION_POST)
                return need_motion() == MOTION_PASS;
        
        return false;