code cleanup: use booleans and const's for operator vars.
[blender.git] / intern / cycles / blender / blender_mesh.cpp
index c61a7fafb57f8b00da76b2084b36fab33960b62f..10e3946dbd2936ee735fdbc2d19bca52ce679078 100644 (file)
@@ -464,7 +464,7 @@ Mesh *BlenderSync::sync_mesh(BL::Object b_ob, bool object_updated, bool hide_tri
 
        /* displacement method */
        if(cmesh.data) {
-               int method = RNA_enum_get(&cmesh, "displacement_method");
+               const int method = RNA_enum_get(&cmesh, "displacement_method");
 
                if(method == 0 || !experimental)
                        mesh->displacement_method = Mesh::DISPLACE_BUMP;