style cleanup

This commit is contained in:
Campbell Barton
2012-07-21 22:58:08 +00:00
parent 049dd8a0ff
commit 9b51503307
42 changed files with 304 additions and 288 deletions

View File

@@ -72,7 +72,7 @@ public:
virtual void SetDrawingMode(int drawingmode);
virtual bool QueryLists(){return true;}
virtual bool QueryLists() {return true;}
#ifdef WITH_CXX_GUARDEDALLOC

View File

@@ -533,10 +533,10 @@ void RAS_OpenGLRasterizer::SetEye(const StereoEye eye)
glDrawBuffer(m_curreye == RAS_STEREO_LEFTEYE ? GL_BACK_LEFT : GL_BACK_RIGHT);
break;
case RAS_STEREO_ANAGLYPH:
if (m_curreye == RAS_STEREO_LEFTEYE)
{
if (m_curreye == RAS_STEREO_LEFTEYE) {
glColorMask(GL_FALSE, GL_TRUE, GL_TRUE, GL_FALSE);
} else {
}
else {
//glAccum(GL_LOAD, 1.0);
glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE);
ClearDepthBuffer();
@@ -892,7 +892,8 @@ void RAS_OpenGLRasterizer::IndexPrimitivesInternal(RAS_MeshSlot& ms, bool multi)
int current_blend_mode = GPU_get_material_alpha_blend();
ms.m_pDerivedMesh->drawFacesGLSL(ms.m_pDerivedMesh, CheckMaterialDM);
GPU_set_material_alpha_blend(current_blend_mode);
} else {
}
else {
//ms.m_pDerivedMesh->drawMappedFacesTex(ms.m_pDerivedMesh, CheckTexfaceDM, mcol);
current_blmat_nr = current_polymat->GetMaterialIndex();
current_image = current_polymat->GetBlenderImage();

View File

@@ -302,9 +302,9 @@ public:
virtual int GetMotionBlurState() { return m_motionblur; }
virtual void SetMotionBlurState(int newstate)
{
if(newstate<0)
if (newstate < 0)
m_motionblur = 0;
else if(newstate>2)
else if (newstate > 2)
m_motionblur = 2;
else
m_motionblur = newstate;

View File

@@ -58,8 +58,8 @@ public:
private:
virtual void EnableTextures(bool enable);
//virtual bool QueryArrays(){return true;}
//virtual bool QueryLists(){return m_Lock;}
//virtual bool QueryArrays() {return true;}
//virtual bool QueryLists() {return m_Lock;}
#ifdef WITH_CXX_GUARDEDALLOC