diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-27 22:15:15 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-03-27 22:15:15 +0300 |
commit | 5ff132182dbb089111cba3a80fa3a8eeb6009ec3 (patch) | |
tree | 016387c6917ce51dbe405489f7f5846b19faab1f /intern/cycles/subd | |
parent | 6f43e1dfef3e5632976529a6f678292b15bd5a0c (diff) |
Cycles: Code cleanup, spaces around keywords
This inconsistency drove me totally crazy, it's really confusing
when it's inconsistent especially when you work on both Cycles and
Blender sides.
Shouldn;t cause merge PITA, it's whitespace changes only, Git should
be able to merge it nicely.
Diffstat (limited to 'intern/cycles/subd')
-rw-r--r-- | intern/cycles/subd/subd_mesh.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/subd/subd_mesh.cpp b/intern/cycles/subd/subd_mesh.cpp index 0db20656f39..17a730e5efe 100644 --- a/intern/cycles/subd/subd_mesh.cpp +++ b/intern/cycles/subd/subd_mesh.cpp @@ -109,8 +109,8 @@ public: evalctrl.EvalLimitSample<OsdCpuVertexBuffer,OsdCpuVertexBuffer>(coords, evalctx, 0); *P_ = make_float3(P[0], P[1], P[2]); - if (dPdu_) *dPdu_ = make_float3(dPdv[0], dPdv[1], dPdv[2]); - if (dPdv_) *dPdv_ = make_float3(dPdu[0], dPdu[1], dPdu[2]); + if(dPdu_) *dPdu_ = make_float3(dPdv[0], dPdv[1], dPdv[2]); + if(dPdv_) *dPdv_ = make_float3(dPdu[0], dPdu[1], dPdu[2]); /* optimize: skip evaluating derivatives when not needed */ /* todo: swapped derivatives, different winding convention? */ @@ -234,7 +234,7 @@ bool OpenSubdMesh::finish() void OpenSubdMesh::tessellate(DiagSplit *split) { - if (num_ptex_faces == 0) + if(num_ptex_faces == 0) return; const int level = 3; |