Commit: ea8926bba47e47a14ac13a740f0a5336d7b52f19
Author: Sergey Sharybin
Date:   Fri Jul 17 11:50:54 2015 +0200
Branches: opensubdiv-modifier
https://developer.blender.org/rBea8926bba47e47a14ac13a740f0a5336d7b52f19

OpenSubdiv: Make sure tabs are used for indentation

===================================================================

M       intern/opensubdiv/opensubdiv_gpu_capi.cc

===================================================================

diff --git a/intern/opensubdiv/opensubdiv_gpu_capi.cc 
b/intern/opensubdiv/opensubdiv_gpu_capi.cc
index cce4672..12e0a67 100644
--- a/intern/opensubdiv/opensubdiv_gpu_capi.cc
+++ b/intern/opensubdiv/opensubdiv_gpu_capi.cc
@@ -607,20 +607,20 @@ static void 
draw_partition_patches_range(PartitionedGLMeshInterface *mesh,
 static void draw_all_patches(PartitionedGLMeshInterface *mesh,
                              GLuint program)
 {
-    OpenSubdiv::Osd::PatchArrayVector const & patches =
-        mesh->GetPatchTable()->GetPatchArrays();
+       OpenSubdiv::Osd::PatchArrayVector const & patches =
+               mesh->GetPatchTable()->GetPatchArrays();
 
-    for (int i = 0; i < (int)patches.size(); ++i) {
-           OpenSubdiv::Osd::PatchArray const &patch = patches[i];
-           OpenSubdiv::Far::PatchDescriptor desc = patch.GetDescriptor();
-           OpenSubdiv::Far::PatchDescriptor::Type patchType = desc.GetType();
+       for (int i = 0; i < (int)patches.size(); ++i) {
+               OpenSubdiv::Osd::PatchArray const &patch = patches[i];
+               OpenSubdiv::Far::PatchDescriptor desc = patch.GetDescriptor();
+               OpenSubdiv::Far::PatchDescriptor::Type patchType = 
desc.GetType();
 
-           if (patchType == OpenSubdiv::Far::PatchDescriptor::QUADS) {
+               if (patchType == OpenSubdiv::Far::PatchDescriptor::QUADS) {
                        perform_drawElements(program,
                                             i,
                                             patch.GetNumPatches() * 
desc.GetNumControlVertices(),
                                             patch.GetIndexBase());
-           }
+               }
     }
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to