Cycles: Use proper property getter
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Aug 2016 14:37:40 +0000 (16:37 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 9 Aug 2016 14:37:40 +0000 (16:37 +0200)
intern/cycles/blender/blender_mesh.cpp

index 5d63aaa1415a1a8cdfefe75bc558519fe6048bb8..6dc26c2981b493c866a89efa493d8ace6e6898a0 100644 (file)
@@ -968,7 +968,7 @@ Mesh *BlenderSync::sync_mesh(BL::Object& b_ob,
                        BL::Modifier mod = b_ob.modifiers[b_ob.modifiers.length()-1];
                        bool enabled = preview ? mod.show_viewport() : mod.show_render();
 
-                       if(enabled && mod.type() == BL::Modifier::type_SUBSURF && RNA_int_get(&cobj, "use_adaptive_subdivision")) {
+                       if(enabled && mod.type() == BL::Modifier::type_SUBSURF && RNA_boolean_get(&cobj, "use_adaptive_subdivision")) {
                                BL::SubsurfModifier subsurf(mod);
 
                                if(subsurf.subdivision_type() == BL::SubsurfModifier::subdivision_type_CATMULL_CLARK) {