Cycles: Don't shadow loop variable
authorMai Lavelle <mai.lavelle@gmail.com>
Sun, 20 Nov 2016 16:46:43 +0000 (11:46 -0500)
committerMai Lavelle <mai.lavelle@gmail.com>
Sun, 20 Nov 2016 16:46:43 +0000 (11:46 -0500)
intern/cycles/render/mesh.cpp

index ac369a0d5f8f0af4912260bf0ed75161457f47f0..32dba532f2bffcd09a95123a8bb7d0c5609dcf86 100644 (file)
@@ -1084,7 +1084,7 @@ void MeshManager::update_svm_attributes(Device *device, DeviceScene *dscene, Sce
                }
 
                /* terminator */
-               for(int i = 0; i < ATTR_PRIM_TYPES; i++) {
+               for(int j = 0; j < ATTR_PRIM_TYPES; j++) {
                        attr_map[index].x = ATTR_STD_NONE;
                        attr_map[index].y = 0;
                        attr_map[index].z = 0;