Fix T44269: Typo in volume_attribute_float:geom_volume.h
authorSergey Sharybin <sergey.vfx@gmail.com>
Sun, 5 Apr 2015 13:51:54 +0000 (18:51 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sun, 5 Apr 2015 14:07:45 +0000 (19:07 +0500)
Was rather harmless typo since we either pass both dx,dy or pass both NULL.

intern/cycles/kernel/geom/geom_volume.h

index c33509fbf4ff0393e28501132c5eef703589a978..c72afa2a3a4088921c382cb8ca2ff8afe55b29ee 100644 (file)
@@ -60,7 +60,7 @@ ccl_device float volume_attribute_float(KernelGlobals *kg, const ShaderData *sd,
 #endif
 
        if(dx) *dx = 0.0f;
-       if(dx) *dy = 0.0f;
+       if(dy) *dy = 0.0f;
 
        /* todo: support float textures to lower memory usage for single floats */
        return average(float4_to_float3(r));