Cycles: Fix uninitialized variable from the previous commit
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 24 Oct 2016 10:54:24 +0000 (12:54 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 24 Oct 2016 10:54:24 +0000 (12:54 +0200)
intern/cycles/bvh/bvh_build.cpp

index 190f57ba455894d0f6a4dd397be7771f5196b176..14f66aca70fcce7070cd5e2a020a656fb62ff88a 100644 (file)
@@ -588,7 +588,7 @@ BVHNode* BVHBuild::build_node(const BVHRange& range,
        float unalignedSplitSAH = FLT_MAX;
        /* float unalignedLeafSAH = FLT_MAX; */
        Transform aligned_space;
-       bool do_unalinged_split;
+       bool do_unalinged_split = false;
        if(params.use_unaligned_nodes &&
           splitSAH > params.unaligned_split_threshold*leafSAH)
        {