correct indentation and some whitespace edits (no functional changes)
authorCampbell Barton <ideasman42@gmail.com>
Fri, 11 Nov 2011 13:09:14 +0000 (13:09 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 11 Nov 2011 13:09:14 +0000 (13:09 +0000)
142 files changed:
intern/audaspace/ffmpeg/AUD_FFMPEGReader.cpp
intern/audaspace/intern/AUD_ConverterReader.cpp
intern/boolop/intern/BOP_Face2Face.cpp
intern/boolop/intern/BOP_Interface.cpp
intern/boolop/intern/BOP_Mesh.cpp
intern/bsp/intern/CSG_BooleanOps.cpp
intern/container/CTR_UHeap.h
intern/decimation/intern/LOD_QSDecimator.cpp
intern/ghost/GHOST_ISystem.h
intern/ghost/GHOST_ISystemPaths.h
intern/ghost/intern/GHOST_DisplayManagerCarbon.cpp
intern/ghost/intern/GHOST_System.h
intern/ghost/intern/GHOST_SystemCocoa.mm
intern/ghost/intern/GHOST_SystemPaths.h
intern/ghost/intern/GHOST_SystemPathsCocoa.h
intern/ghost/intern/GHOST_SystemPathsWin32.h
intern/ghost/intern/GHOST_SystemPathsX11.h
intern/ghost/intern/GHOST_SystemX11.cpp
intern/ghost/intern/GHOST_SystemX11.h
intern/ghost/intern/GHOST_WindowWin32.cpp
intern/ghost/test/gears/GHOST_Test.cpp
intern/memutil/MEM_CacheLimiter.h
release/plugins/sequence/dnr.c
release/plugins/sequence/gamma.c
source/blender/avi/intern/avi.c
source/blender/blenkernel/BKE_DerivedMesh.h
source/blender/blenkernel/BKE_bmfont.h
source/blender/blenkernel/BKE_fluidsim.h
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/BKE_paint.h
source/blender/blenkernel/BKE_sequencer.h
source/blender/blenkernel/intern/brush.c
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/cloth.c
source/blender/blenkernel/intern/curve.c
source/blender/blenkernel/intern/customdata.c
source/blender/blenkernel/intern/depsgraph.c
source/blender/blenkernel/intern/implicit.c
source/blender/blenkernel/intern/library.c
source/blender/blenkernel/intern/mball.c
source/blender/blenkernel/intern/multires.c
source/blender/blenkernel/intern/node.c
source/blender/blenkernel/intern/pointcache.c
source/blender/blenkernel/intern/seqeffects.c
source/blender/blenkernel/intern/sequencer.c
source/blender/blenkernel/intern/softbody.c
source/blender/blenkernel/intern/writeffmpeg.c
source/blender/blenlib/BLI_fnmatch.h
source/blender/blenlib/BLI_pbvh.h
source/blender/blenlib/BLI_vfontdata.h
source/blender/blenlib/intern/BLI_heap.c
source/blender/blenlib/intern/edgehash.c
source/blender/blenlib/intern/pbvh.c
source/blender/blenlib/intern/scanfill.c
source/blender/blenloader/intern/readfile.c
source/blender/collada/ArmatureExporter.cpp
source/blender/collada/ArmatureImporter.cpp
source/blender/collada/ArmatureImporter.h
source/blender/editors/armature/editarmature.c
source/blender/editors/armature/editarmature_retarget.c
source/blender/editors/curve/curve_intern.h
source/blender/editors/curve/editcurve.c
source/blender/editors/include/ED_sculpt.h
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_draw.c
source/blender/editors/mesh/editmesh_lib.c
source/blender/editors/mesh/editmesh_mods.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/mesh/mesh_data.c
source/blender/editors/object/object_edit.c
source/blender/editors/object/object_hook.c
source/blender/editors/object/object_select.c
source/blender/editors/sculpt_paint/paint_stroke.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/space_file/file_draw.c
source/blender/editors/space_logic/logic_window.c
source/blender/editors/space_node/drawnode.c
source/blender/editors/space_node/node_draw.c
source/blender/editors/space_sequencer/sequencer_edit.c
source/blender/editors/space_sequencer/sequencer_ops.c
source/blender/editors/space_text/text_intern.h
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_snap.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_orientations.c
source/blender/gpu/intern/gpu_buffers.c
source/blender/gpu/intern/gpu_codegen.c
source/blender/gpu/intern/gpu_draw.c
source/blender/gpu/intern/gpu_extensions.c
source/blender/imbuf/IMB_imbuf.h
source/blender/imbuf/intern/IMB_indexer.h
source/blender/imbuf/intern/anim_movie.c
source/blender/imbuf/intern/indexer.c
source/blender/imbuf/intern/jpeg.c
source/blender/imbuf/intern/png.c
source/blender/imbuf/intern/scaling.c
source/blender/imbuf/intern/thumbs_blend.c
source/blender/makesdna/DNA_ID.h
source/blender/makesdna/DNA_object_force.h
source/blender/makesdna/DNA_sensor_types.h
source/blender/makesrna/intern/rna_curve.c
source/blender/makesrna/intern/rna_lamp.c
source/blender/makesrna/intern/rna_mesh.c
source/blender/makesrna/intern/rna_meta.c
source/blender/makesrna/intern/rna_scene.c
source/blender/modifiers/intern/MOD_armature.c
source/blender/modifiers/intern/MOD_array.c
source/blender/modifiers/intern/MOD_boolean.c
source/blender/modifiers/intern/MOD_curve.c
source/blender/modifiers/intern/MOD_displace.c
source/blender/modifiers/intern/MOD_hook.c
source/blender/modifiers/intern/MOD_lattice.c
source/blender/modifiers/intern/MOD_mirror.c
source/blender/modifiers/intern/MOD_smooth.c
source/blender/nodes/composite/nodes/node_composite_diffMatte.c
source/blender/nodes/composite/nodes/node_composite_image.c
source/blender/python/generic/noise_py_api.c
source/blender/quicktime/apple/qtkit_import.m
source/blender/quicktime/apple/quicktime_export.c
source/blender/quicktime/apple/quicktime_import.c
source/blender/render/extern/include/RE_pipeline.h
source/blender/render/intern/source/imagetexture.c
source/blender/render/intern/source/occlusion.c
source/blender/render/intern/source/pipeline.c
source/blender/render/intern/source/render_texture.c
source/blender/render/intern/source/shadbuf.c
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_operators.c
source/gameengine/Converter/BL_ShapeActionActuator.cpp
source/gameengine/Expressions/IntValue.h
source/gameengine/GameLogic/SCA_MouseSensor.h
source/gameengine/GamePlayer/common/GPC_Canvas.cpp
source/gameengine/Ketsji/BL_Action.cpp
source/gameengine/Ketsji/BL_Shader.cpp
source/gameengine/Ketsji/KX_Dome.cpp
source/gameengine/Ketsji/KX_IpoActuator.h
source/gameengine/Ketsji/KX_MouseFocusSensor.h
source/gameengine/Ketsji/KX_NearSensor.h
source/gameengine/Ketsji/KX_Scene.cpp
source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
source/gameengine/VideoTexture/Texture.h

index 0c550ce3b60aef2b5092919ae5a1163a67793e9f..6553073c54ea178427869cde36dcec9c2dcf62a3 100644 (file)
@@ -395,7 +395,7 @@ void AUD_FFMPEGReader::read(int& length, bool& eos, sample_t* buffer)
        {
                data_size = AUD_MIN(pkgbuf_pos, left * sample_size);
                m_convert((data_t*) buf, (data_t*) m_pkgbuf.getBuffer(),
-                                 data_size / AUD_FORMAT_SIZE(m_specs.format));
+                         data_size / AUD_FORMAT_SIZE(m_specs.format));
                buf += data_size / AUD_FORMAT_SIZE(m_specs.format);
                left -= data_size/sample_size;
        }
index 14bb46f3b3821d0b736e00a8673caa7f38aa0fc3..63178f316b2ffde3026f8ecc81cd4f20d95da485 100644 (file)
@@ -73,5 +73,5 @@ void AUD_ConverterReader::read(int& length, bool& eos, sample_t* buffer)
        m_reader->read(length, eos, m_buffer.getBuffer());
 
        m_convert((data_t*)buffer, (data_t*)m_buffer.getBuffer(),
-                         length * specs.channels);
+                 length * specs.channels);
 }
index 332b70550ed073f3a9615033a73068d3d704befd..de9fa7b85086da76c7997e7412fbfda098ed4056 100644 (file)
@@ -167,39 +167,41 @@ void BOP_Face2Face(BOP_Mesh *mesh, BOP_Faces *facesA, BOP_Faces *facesB)
                MT_Point3 p2 = mesh->getVertex(faceA->getVertex(1))->getPoint();
                MT_Point3 p3 = mesh->getVertex(faceA->getVertex(2))->getPoint();
 
-       /* get (or create) bounding box for face A */
+               /* get (or create) bounding box for face A */
                if( faceA->getBBox() == NULL )
-               faceA->setBBox(p1,p2,p3);
+                       faceA->setBBox(p1,p2,p3);
                BOP_BBox *boxA = faceA->getBBox();
 
        /* start checking B faces with the previously stored split index */
 
                for(unsigned int idxFaceB=faceA->getSplit();
-                       idxFaceB<facesB->size() && (faceA->getTAG() != BROKEN) && (faceA->getTAG() != PHANTOM);) {
+                   idxFaceB<facesB->size() && (faceA->getTAG() != BROKEN) && (faceA->getTAG() != PHANTOM);) {
                        BOP_Face *faceB = (*facesB)[idxFaceB];
                        faceA->setSplit(idxFaceB);
                        if ((faceB->getTAG() != BROKEN) && (faceB->getTAG() != PHANTOM)) {
 
-       /* get (or create) bounding box for face B */
-                               if( faceB->getBBox() == NULL )
-                               faceB->setBBox(mesh->getVertex(faceB->getVertex(0))->getPoint(),
-                    mesh->getVertex(faceB->getVertex(1))->getPoint(),
-                    mesh->getVertex(faceB->getVertex(2))->getPoint());
-                         BOP_BBox *boxB = faceB->getBBox();
+                               /* get (or create) bounding box for face B */
+                               if( faceB->getBBox() == NULL ) {
+                                       faceB->setBBox(mesh->getVertex(faceB->getVertex(0))->getPoint(),
+                                                      mesh->getVertex(faceB->getVertex(1))->getPoint(),
+                                                      mesh->getVertex(faceB->getVertex(2))->getPoint());
+                               }
+                               BOP_BBox *boxB = faceB->getBBox();
 
-                         if (boxA->intersect(*boxB)) {
-                           MT_Plane3 planeB = faceB->getPlane();
-                           if (BOP_containsPoint(planeB,p1) && 
-                               BOP_containsPoint(planeB,p2) && 
-                               BOP_containsPoint(planeB,p3)) {
-                             if (BOP_orientation(planeB,planeA)>0) {
-                                   BOP_intersectCoplanarFaces(mesh,facesB,faceA,faceB,false);
-                             }
-                           }
-                           else {
-                             BOP_intersectNonCoplanarFaces(mesh,facesA,facesB,faceA,faceB);
-                           }
-                         }                       
+                               if (boxA->intersect(*boxB)) {
+                                       MT_Plane3 planeB = faceB->getPlane();
+                                       if (BOP_containsPoint(planeB,p1) &&
+                                               BOP_containsPoint(planeB,p2) &&
+                                               BOP_containsPoint(planeB,p3))
+                                       {
+                                               if (BOP_orientation(planeB,planeA)>0) {
+                                                       BOP_intersectCoplanarFaces(mesh,facesB,faceA,faceB,false);
+                                               }
+                                       }
+                                       else {
+                                               BOP_intersectNonCoplanarFaces(mesh,facesA,facesB,faceA,faceB);
+                                       }
+                               }
                        }
                        idxFaceB++;
                }
@@ -656,16 +658,16 @@ void BOP_mergeSort(MT_Point3 *points, unsigned int *face, unsigned int &size, bo
  * @param invert indicates if faceA has priority over faceB
  * @param segmemts array of the output x-segments
  */
- void BOP_createXS(BOP_Mesh*    mesh, 
-        BOP_Face*    faceA, 
-        BOP_Face*    faceB, 
-        BOP_Segment  sA, 
-        BOP_Segment  sB, 
-        bool         invert, 
-        BOP_Segment* segments) {    
-        BOP_createXS(mesh, faceA, faceB, faceA->getPlane(), faceB->getPlane(),
-                sA, sB, invert, segments);
- }
+void BOP_createXS(BOP_Mesh*    mesh,
+                  BOP_Face*    faceA,
+                  BOP_Face*    faceB,
+                  BOP_Segment  sA,
+                  BOP_Segment  sB,
+                  bool         invert,
+                  BOP_Segment* segments) {
+       BOP_createXS(mesh, faceA, faceB, faceA->getPlane(), faceB->getPlane(),
+                    sA, sB, invert, segments);
+}
 
 /**
  * Computes the x-segment of two segments (the shared interval). The segments needs to have sA.m_cfg1 > 0 && sB.m_cfg1 > 0 .
@@ -1169,7 +1171,7 @@ BOP_Face *BOP_getOppositeFace(BOP_Mesh*  mesh,
 void BOP_removeOverlappedFaces(BOP_Mesh *mesh,  BOP_Faces *facesA,  BOP_Faces *facesB)
 {
        for(unsigned int i=0;i<facesA->size();i++) {
-               BOP_Face *faceI = (*facesA)[i];       
+               BOP_Face *faceI = (*facesA)[i];
                if (faceI->getTAG()==BROKEN) continue;
                bool overlapped = false;
                MT_Point3 p1 = mesh->getVertex(faceI->getVertex(0))->getPoint();
@@ -1178,21 +1180,23 @@ void BOP_removeOverlappedFaces(BOP_Mesh *mesh,  BOP_Faces *facesA,  BOP_Faces *f
                for(unsigned int j=0;j<facesB->size();) {
                        BOP_Face *faceJ = (*facesB)[j];
                        if (faceJ->getTAG()!=BROKEN) {
-                         MT_Plane3 planeJ = faceJ->getPlane();
-                         if (BOP_containsPoint(planeJ,p1) && BOP_containsPoint(planeJ,p2) 
-                             && BOP_containsPoint(planeJ,p3)) {
-                           MT_Point3 q1 = mesh->getVertex(faceJ->getVertex(0))->getPoint();
-                           MT_Point3 q2 = mesh->getVertex(faceJ->getVertex(1))->getPoint();
-                           MT_Point3 q3 = mesh->getVertex(faceJ->getVertex(2))->getPoint();
-                           if (BOP_overlap(MT_Vector3(planeJ.x(),planeJ.y(),planeJ.z()),
-                                           p1,p2,p3,q1,q2,q3)) {
-                             facesB->erase(facesB->begin()+j,facesB->begin()+(j+1));
-                             faceJ->setTAG(BROKEN);
-                             overlapped = true;
-                           }
-                           else j++;
-                         }
-                         else j++;
+                               MT_Plane3 planeJ = faceJ->getPlane();
+                               if (BOP_containsPoint(planeJ,p1) && BOP_containsPoint(planeJ,p2)
+                                       && BOP_containsPoint(planeJ,p3))
+                               {
+                                       MT_Point3 q1 = mesh->getVertex(faceJ->getVertex(0))->getPoint();
+                                       MT_Point3 q2 = mesh->getVertex(faceJ->getVertex(1))->getPoint();
+                                       MT_Point3 q3 = mesh->getVertex(faceJ->getVertex(2))->getPoint();
+                                       if (BOP_overlap(MT_Vector3(planeJ.x(),planeJ.y(),planeJ.z()),
+                                                       p1,p2,p3,q1,q2,q3))
+                                       {
+                                               facesB->erase(facesB->begin()+j,facesB->begin()+(j+1));
+                                               faceJ->setTAG(BROKEN);
+                                               overlapped = true;
+                                       }
+                                       else j++;
+                               }
+                               else j++;
                        }else j++;
                }
                if (overlapped) faceI->setTAG(OVERLAPPED);
index 8b88c18f1513463041f17f2980b6b9a236c1ae20..f11c4eaffae2ae80e5637d67b73278500eb49753 100644 (file)
 #endif
 
 BoolOpState BOP_intersectionBoolOp(BOP_Mesh*  meshC,
-                                                                  BOP_Faces* facesA,
-                                                                  BOP_Faces* facesB,
-                                                                  bool       invertMeshA,
-                                                                  bool       invertMeshB);
+                                   BOP_Faces* facesA,
+                                   BOP_Faces* facesB,
+                                   bool       invertMeshA,
+                                   bool       invertMeshB);
 BOP_Face3* BOP_createFace(BOP_Mesh* mesh, 
-                                                 BOP_Index vertex1, 
-                                                 BOP_Index vertex2, 
-                                                 BOP_Index vertex3, 
-                                                 BOP_Index origFace);
+                          BOP_Index vertex1,
+                          BOP_Index vertex2,
+                          BOP_Index vertex3,
+                          BOP_Index origFace);
 void BOP_addMesh(BOP_Mesh*                     mesh,
-                                BOP_Faces*                    meshFacesId,
-                                CSG_FaceIteratorDescriptor&   face_it,
-                                CSG_VertexIteratorDescriptor& vertex_it,
-                                bool                          invert);
+                 BOP_Faces*                    meshFacesId,
+                 CSG_FaceIteratorDescriptor&   face_it,
+                 CSG_VertexIteratorDescriptor& vertex_it,
+                 bool                          invert);
 BSP_CSGMesh* BOP_newEmptyMesh();
 BSP_CSGMesh* BOP_exportMesh(BOP_Mesh*                  inputMesh, 
-                                                       bool                       invert);
+                            bool                       invert);
 void BOP_meshFilter(BOP_Mesh* meshC, BOP_Faces* faces, BOP_BSPTree* bsp);
 void BOP_simplifiedMeshFilter(BOP_Mesh* meshC, BOP_Faces* faces, BOP_BSPTree* bsp, bool inverted);
 void BOP_meshClassify(BOP_Mesh* meshC, BOP_Faces* faces, BOP_BSPTree* bsp);
index 5ea9872467d64eb4bd2b406287cdc3a522da7cd6..e35b5437f68a169bd8e3f5789c25e6e5e8abceb0 100644 (file)
@@ -788,20 +788,20 @@ BOP_Index BOP_Mesh::replaceVertexIndex(BOP_Index oldIndex, BOP_Index newIndex)
 
 bool BOP_Mesh::isClosedMesh()
 {
-        for(unsigned int i=0; i<m_edges.size(); i++) {
-                        BOP_Edge *edge = m_edges[i];
-                        BOP_Indexs faces = edge->getFaces();
-                        unsigned int count = 0;
-                        const BOP_IT_Indexs facesEnd = faces.end();
-                        for(BOP_IT_Indexs it = faces.begin();it!=facesEnd;it++) {
-                                        if (m_faces[*it]->getTAG()!=BROKEN)
-                                                        count++;
-                        }
-
-                        if ((count%2)!=0) return false;
-        }
-
-        return true;
+       for(unsigned int i=0; i<m_edges.size(); i++) {
+               BOP_Edge *edge = m_edges[i];
+               BOP_Indexs faces = edge->getFaces();
+               unsigned int count = 0;
+               const BOP_IT_Indexs facesEnd = faces.end();
+               for(BOP_IT_Indexs it = faces.begin();it!=facesEnd;it++) {
+                       if (m_faces[*it]->getTAG()!=BROKEN)
+                               count++;
+               }
+
+               if ((count%2)!=0) return false;
+       }
+
+       return true;
 }
 
 
index 91523bad48398dd4e01ec132d703037fd4e162a0..df1374ef10be26f469ea97fc2227491dcedf9665 100644 (file)
@@ -91,14 +91,14 @@ CSG_PerformBooleanOperation(
        
        switch( op_type ) {
        case e_csg_union:
-         boolType = BOP_UNION;
-         break;
+               boolType = BOP_UNION;
+               break;
        case e_csg_difference:
-         boolType = BOP_DIFFERENCE;
-         break;
+               boolType = BOP_DIFFERENCE;
+               break;
        default:
-         boolType = BOP_INTERSECTION;
-         break;
+               boolType = BOP_INTERSECTION;
+               break;
        }
 
        BoolOpState boolOpResult;
index e1cd2755263a3cdc21e55d36118ba1c96ea84416..11813c4833105fbb75af6b7a553faff73ac5b359 100644 (file)
@@ -229,13 +229,13 @@ private:
        Parent(
                unsigned int i
        ) {
-                return (i-1) >> 1; 
+               return (i-1) >> 1;
        }
                int 
        Left(
                int i
        ) {
-               return (i<<1)+1; 
+               return (i<<1)+1;
        }
 
                int 
index 607a43a156d349f552fa6d250264048f941cefc7..381571a41f69a4dc3295888fb5ccc77c6a2edc50 100644 (file)
@@ -152,8 +152,8 @@ CollapseEdge(
 
                // assign new vertex position
 
-                v0.pos = new_vertex;
-                v1.pos = new_vertex;
+               v0.pos = new_vertex;
+               v1.pos = new_vertex;
 
                // sum the quadrics of v0 and v1
                q0 = sum;
index f926c07a8e52a4a20be18727f13dee512190d2d0..04dc8717637babed4c60540bfe51ee6bac8e75a1 100644 (file)
@@ -252,7 +252,7 @@ public:
         * @return      Indication of success.
         */
        virtual GHOST_TSuccess beginFullScreen(const GHOST_DisplaySetting& setting, GHOST_IWindow** window,
-               const bool stereoVisual, const GHOST_TUns16 numOfAASamples=0) = 0;
+               const bool stereoVisual) = 0;
 
        /**
         * Ends full screen mode.
@@ -358,7 +358,7 @@ public:
         * @return Returns "unsinged char" from X11 XA_CUT_BUFFER0 buffer
         *
         */
-        virtual GHOST_TUns8* getClipboard(bool selection) const = 0;
+       virtual GHOST_TUns8* getClipboard(bool selection) const = 0;
 
        /**
         * Put data to the Clipboard
index 05795d86cc9130c2eb27263a5770d2cfc43613f2..804cba721ff5319698f4c85b2d71165ff13f8451 100644 (file)
@@ -86,12 +86,12 @@ public:
          * Determine the directory of the current binary
          * @return Unsigned char string pointing to the binary dir
          */
-        virtual const GHOST_TUns8* getBinaryDir() const = 0;
+       virtual const GHOST_TUns8* getBinaryDir() const = 0;
 
-        /**
-         * Add the file to the operating system most recently used files
-         */
-        virtual void addToSystemRecentFiles(const char* filename) const = 0;
+       /**
+        * Add the file to the operating system most recently used files
+        */
+       virtual void addToSystemRecentFiles(const char* filename) const = 0;
 
 private:
        /** The one and only system paths*/
index 5ef3bbea9422ab31d8e577ec5f199c51795e21c4..1449da7b096e0a20cd709adad7dcb8316b37e743 100644 (file)
@@ -88,7 +88,7 @@ GHOST_TSuccess GHOST_DisplayManagerCarbon::getDisplaySetting(GHOST_TUns8 display
        displayModes = ::CGDisplayAvailableModes(d);
        //CFIndex numModes = ::CFArrayGetCount(displayModes);/*unused*/
        //GHOST_TInt32 numSettings = (GHOST_TInt32)numModes; /*unused*/
-        CFDictionaryRef displayModeValues = (CFDictionaryRef)::CFArrayGetValueAtIndex(displayModes, index);
+       CFDictionaryRef displayModeValues = (CFDictionaryRef)::CFArrayGetValueAtIndex(displayModes, index);
                        
        setting.xPixels         = getValue(displayModeValues, kCGDisplayWidth);
        setting.yPixels         = getValue(displayModeValues, kCGDisplayHeight);
index c958d54f2d01dafbeb7d11755eba526a865bf610..afd2a8cbae30a11e52a9ec63a379a03312b7b62d 100644 (file)
@@ -141,7 +141,7 @@ public:
         * @return      Indication of success.
         */
        virtual GHOST_TSuccess beginFullScreen(const GHOST_DisplaySetting& setting, GHOST_IWindow** window,
-               const bool stereoVisual, const GHOST_TUns16 numOfAASamples=0);
+               const bool stereoVisual);
 
        /**
         * Ends full screen mode.
@@ -276,7 +276,7 @@ public:
         * @return                              Returns the clipboard data
         *
         */
-        virtual GHOST_TUns8* getClipboard(bool selection) const = 0;
+       virtual GHOST_TUns8* getClipboard(bool selection) const = 0;
          
          /**
           * Put data to the Clipboard
@@ -305,7 +305,7 @@ protected:
         * @return Indication of success.
         */
        virtual GHOST_TSuccess createFullScreenWindow(GHOST_Window** window,
-               const bool stereoVisual, const GHOST_TUns16 numOfAASamples=0);
+               const bool stereoVisual);
 
        /** The display manager (platform dependant). */
        GHOST_DisplayManager* m_displayManager;
index 9dc3dd3f30b8fec7b98351705dc2443888a0417d..730a7c081510a771e41be4ed5b3019f70e0f1254 100644 (file)
@@ -875,24 +875,25 @@ bool GHOST_SystemCocoa::processEvents(bool waitForEvent)
        /*do {
                GHOST_TimerManager* timerMgr = getTimerManager();
                
-                if (waitForEvent) {
-                GHOST_TUns64 next = timerMgr->nextFireTime();
-                double timeOut;
-                
-                if (next == GHOST_kFireTimeNever) {
-                timeOut = kEventDurationForever;
-                } else {
-                timeOut = (double)(next - getMilliSeconds())/1000.0;
-                if (timeOut < 0.0)
-                timeOut = 0.0;
-                }
-                
-                ::ReceiveNextEvent(0, NULL, timeOut, false, &event);
-                }
-                
-                if (timerMgr->fireTimers(getMilliSeconds())) {
-                anyProcessed = true;
-                }*/
+               if (waitForEvent) {
+               GHOST_TUns64 next = timerMgr->nextFireTime();
+               double timeOut;
+
+               if (next == GHOST_kFireTimeNever) {
+               timeOut = kEventDurationForever;
+               } else {
+               timeOut = (double)(next - getMilliSeconds())/1000.0;
+               if (timeOut < 0.0)
+               timeOut = 0.0;
+               }
+
+               ::ReceiveNextEvent(0, NULL, timeOut, false, &event);
+               }
+
+               if (timerMgr->fireTimers(getMilliSeconds())) {
+               anyProcessed = true;
+               }
+               */
                
                do {
                        NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
index 4ee01e899d0fb2bc7ee6b3fa6b91f2dbb5b6e3d7..739fd4edfaff5fd6078268c93e3caa736f16f8d6 100644 (file)
@@ -68,12 +68,12 @@ public:
          * Determine the directory of the current binary
          * @return Unsigned char string pointing to the binary dir
          */
-        virtual const GHOST_TUns8* getBinaryDir() const = 0;
+       virtual const GHOST_TUns8* getBinaryDir() const = 0;
 
-        /**
-         * Add the file to the operating system most recently used files
-         */
-        virtual void addToSystemRecentFiles(const char* filename) const = 0;
+       /**
+        * Add the file to the operating system most recently used files
+        */
+       virtual void addToSystemRecentFiles(const char* filename) const = 0;
 
 };
 
index 14fb65c12820e9c026d4f4b34732d10c1e35d002..2b86659c1164d7cbf1d6d102f1a9a7dc37242f85 100644 (file)
@@ -70,12 +70,12 @@ public:
          * Determine the directory of the current binary
          * @return Unsigned char string pointing to the binary dir
          */
-        virtual const GHOST_TUns8* getBinaryDir() const;
+       virtual const GHOST_TUns8* getBinaryDir() const;
 
-        /**
-         * Add the file to the operating system most recently used files
-         */
-        void addToSystemRecentFiles(const char* filename) const;
+       /**
+        * Add the file to the operating system most recently used files
+        */
+       void addToSystemRecentFiles(const char* filename) const;
 };
 
 #endif // _GHOST_SYSTEM_COCOA_H_
index 3b7ce6f99105a71d8238516fb5fc4de5b3730fc7..dd875d4abea45e33d5395a1effa16d4d639e2335 100644 (file)
@@ -74,18 +74,18 @@ public:
         * If needed, it will create the base directory.
         * @return Unsigned char string pointing to user dir (eg ~/).
         */
-        const GHOST_TUns8* getUserDir() const;
+       const GHOST_TUns8* getUserDir() const;
 
-        /**
-         * Determine the directory of the current binary
-         * @return Unsigned char string pointing to the binary dir
-         */
-        const GHOST_TUns8* getBinaryDir() const;
+       /**
+        * Determine the directory of the current binary
+        * @return Unsigned char string pointing to the binary dir
+        */
+       const GHOST_TUns8* getBinaryDir() const;
 
-        /**
-         * Add the file to the operating system most recently used files
-         */
-        void addToSystemRecentFiles(const char* filename) const;
+       /**
+        * Add the file to the operating system most recently used files
+        */
+       void addToSystemRecentFiles(const char* filename) const;
 };
 
 #endif // _GHOST_SYSTEM_PATHS_WIN32_H_
index 469f93f561557463e14ddf9e62ed7c54dbf7c629..a0a1d28a2539a8770767ec083cd295d6b1e90e76 100644 (file)
@@ -68,12 +68,12 @@ public:
          * Determine the directory of the current binary
          * @return Unsigned char string pointing to the binary dir
          */
-        const GHOST_TUns8* getBinaryDir() const;
+       const GHOST_TUns8* getBinaryDir() const;
 
-        /**
-         * Add the file to the operating system most recently used files
-         */
-        void addToSystemRecentFiles(const char* filename) const;
+       /**
+        * Add the file to the operating system most recently used files
+        */
+       void addToSystemRecentFiles(const char* filename) const;
 };
 
 #endif
index a5799273fde3fbee092e0c73fb39231e0cd4dc4c..2547006ef287271aa1b68777904161338e779f2b 100644 (file)
@@ -304,14 +304,15 @@ static void SleepTillEvent(Display *display, GHOST_TInt64 maxSleep) {
        FD_SET(fd, &fds);
 
        if (maxSleep == -1) {
-           select(fd + 1, &fds, NULL, NULL, NULL);
-       } else {
+               select(fd + 1, &fds, NULL, NULL, NULL);
+       }
+       else {
                timeval tv;
 
                tv.tv_sec = maxSleep/1000;
                tv.tv_usec = (maxSleep - tv.tv_sec*1000)*1000;
        
-           select(fd + 1, &fds, NULL, NULL, &tv);
+               select(fd + 1, &fds, NULL, NULL, &tv);
        }
 }
 
index d35d91693e2110bbc730cd7f56efbcb199a7ea0d..73d9c95e273309761ebce5bc947862125935d9d4 100644 (file)
@@ -218,8 +218,8 @@ public:
 
        /* Helped function for get data from the clipboard. */
        void getClipboard_xcout(XEvent evt, Atom sel, Atom target,
-                        unsigned char **txt, unsigned long *len,
-                        unsigned int *context) const;
+                               unsigned char **txt, unsigned long *len,
+                               unsigned int *context) const;
 
        /**
         * Returns unsinged char from CUT_BUFFER0
index cd5eff18be5e5dd598c74991182e2ba69945a44b..a363130c8976b1e8dbfa71d792751e480e224819 100644 (file)
@@ -1046,9 +1046,9 @@ GHOST_TSuccess GHOST_WindowWin32::setWindowCursorGrab(GHOST_TGrabCursorMode mode
                        /* use to generate a mouse move event, otherwise the last event
                         * blender gets can be outside the screen causing menus not to show
                         * properly unless the user moves the mouse */
-                        GHOST_TInt32 pos[2];
-                        m_system->getCursorPosition(pos[0], pos[1]);
-                        m_system->setCursorPosition(pos[0], pos[1]);
+                       GHOST_TInt32 pos[2];
+                       m_system->getCursorPosition(pos[0], pos[1]);
+                       m_system->setCursorPosition(pos[0], pos[1]);
                }
 
                /* Almost works without but important otherwise the mouse GHOST location can be incorrect on exit */
index 23a82cb9fbd2457d3b7774e6b5b73ca6da87247a..1822f3539bd6d3a197684736c889ad216a88e50f 100644 (file)
@@ -689,7 +689,7 @@ int main(int /*argc*/, char** /*argv*/)
                //DWORD keyValue;
 //             lresult = regkey.Open(HKEY_LOCAL_MACHINE, "SOFTWARE\\NVIDIA Corporation\\Global\\Stereo3D\\StereoEnable");
                lresult = regkey.Open(HKEY_LOCAL_MACHINE, "SOFTWARE\\NVIDIA Corporation\\Global\\Stereo3D\\StereoEnable",
-                        KEY_ALL_ACCESS );
+                                     KEY_ALL_ACCESS);
 
                if(lresult == ERROR_SUCCESS)
                        printf("Succesfully opened key\n");
index 5194c97fd78157b2ed82bfbc15b50cdf83fdbba0..fc12f22cfe686266e53cf9bfa1d788f1afb2b97e 100644 (file)
@@ -115,7 +115,7 @@ private:
 
        T * data;
        int refcount;
-       typename std::list<MEM_CacheLimiterHandle<T> *, 
+       typename std::list<MEM_CacheLimiterHandle<T> *,
          MEM_Allocator<MEM_CacheLimiterHandle<T> *> >::iterator me;
        MEM_CacheLimiter<T> * parent;
 };
@@ -160,7 +160,8 @@ public:
                }
 
                for (iterator it = queue.begin(); 
-                    it != queue.end() && mem_in_use > max;) {
+                    it != queue.end() && mem_in_use > max;)
+               {
                        iterator jt = it;
                        ++it;
 
index 606ec19ef417391b1c4f1afbfb71813693bf0b69..74b3a06ccbb1c358fc158fd14ff9494ace278f43 100644 (file)
@@ -42,7 +42,7 @@ struct my_data {
 };
 
 void plugin_seq_doit(Cast *, float, float, int, int, 
-                    ImBuf *, ImBuf *, ImBuf *, ImBuf *);
+                     ImBuf *, ImBuf *, ImBuf *, ImBuf *);
 
 int plugin_seq_getversion(void) { return B_PLUGIN_VERSION;}
 
index 7ce86fff34747fd30619a78fc0bd9b72850033c7..1560c5805dff273536bb0a07009c8fb748dee2c5 100644 (file)
@@ -117,13 +117,13 @@ void plugin_seq_doit(Cast *cast, float facf0, float facf1, int width,
                src1= (unsigned char *) ibuf1->rect;
 
                make_gamma_table(cast->setup_m, cast->gain_m, cast->gamma_m,
-                                gamma_table_m);
+                                gamma_table_m);
                make_gamma_table(cast->setup_r, cast->gain_r, cast->gamma_r,
-                                gamma_table_r);
+                                gamma_table_r);
                make_gamma_table(cast->setup_g, cast->gain_g, cast->gamma_g,
-                                gamma_table_g);
+                                gamma_table_g);
                make_gamma_table(cast->setup_b, cast->gain_b, cast->gamma_b,
-                                gamma_table_b);
+                                gamma_table_b);
 
                for (y = 0; y < height; y++) {
                        for (x = 0; x < width; x++) {
index 6e8828ebce427a1d5415117b391f25d0ea910465..a021695b7c9d7b2fbd814f1c82e0668f1501557e 100644 (file)
@@ -731,9 +731,9 @@ AviError AVI_open_compress (char *name, AviMovie *movie, int streams, ...) {
        movie->header->fcc = FCC("avih");
        movie->header->size = 56;
        movie->header->MicroSecPerFrame = 66667;
-        movie->header->MaxBytesPerSec = 0; 
-        movie->header->PaddingGranularity = 0; 
-        movie->header->Flags = AVIF_HASINDEX | AVIF_MUSTUSEINDEX;
+       movie->header->MaxBytesPerSec = 0;
+       movie->header->PaddingGranularity = 0;
+       movie->header->Flags = AVIF_HASINDEX | AVIF_MUSTUSEINDEX;
        movie->header->TotalFrames = 0;
        movie->header->InitialFrames = 0;
        movie->header->Streams = streams;
index 0c5dc32f6d8d05f2403286dbe57d991032d1cd03..15fdc2fe30759e921f8fbc4ad6f5cbb29eba988d 100644 (file)
@@ -347,7 +347,7 @@ void DM_init_funcs(DerivedMesh *dm);
  * sets up the custom data layers)
  */
 void DM_init(DerivedMesh *dm, DerivedMeshType type,
-                        int numVerts, int numEdges, int numFaces);
+             int numVerts, int numEdges, int numFaces);
 
 /* utility function to initialise a DerivedMesh for the desired number
  * of vertices, edges and faces, with a layer setup copied from source
index 5f23121b802c10d506abd4aa27e09cfec84695b4..71fd2ae3d671c92ee8a8f25631564fc249b8ef7c 100644 (file)
@@ -44,19 +44,19 @@ struct bmFont;
 void printfGlyph(struct bmGlyph * glyph);
 void calcAlpha(struct ImBuf * ibuf);
 void readBitmapFontVersion0(struct ImBuf * ibuf,
-                                                                  unsigned char * rect,
-                                                                  int step);
+                            unsigned char * rect,
+                            int step);
 void detectBitmapFont(struct ImBuf *ibuf);
 int locateGlyph(struct bmFont *bmfont, unsigned short unicode);
 void matrixGlyph(struct ImBuf * ibuf, unsigned short unicode,
-                                float *centerx, float *centery,
-                                float *sizex,   float *sizey,
-                                float *transx,  float *transy,
-                                float *movex,   float *movey, float *advance); 
+                 float *centerx, float *centery,
+                 float *sizex,   float *sizey,
+                 float *transx,  float *transy,
+                 float *movex,   float *movey, float *advance);
 
 #ifdef __cplusplus
 }
 #endif
-       
+
 #endif
 
index a68009dda376a825a125dea2bfc7673248413f21..2b2c7a4ff8725a752cb92079a7033ab207917475 100644 (file)
@@ -48,7 +48,7 @@ void initElbeemMesh(struct Scene *scene, struct Object *ob,
 
 /* bounding box & memory estimate */
 void fluid_get_bb(struct MVert *mvert, int totvert, float obmat[][4],
-                float start[3], float size[3]);
+                  float start[3], float size[3]);
 
 void fluid_estimate_memory(struct Object *ob, struct FluidsimSettings *fss, char *value);
 
index 07c6fb8b09cefe253e5170704b37d7d91245cc6b..900835940c7b68e5b037ef25da1c7fa95c78e6f5 100644 (file)
@@ -128,9 +128,9 @@ typedef struct IndexNode {
        int index;
 } IndexNode;
 void create_vert_face_map(ListBase **map, IndexNode **mem, const struct MFace *mface,
-                         const int totvert, const int totface);
+                          const int totvert, const int totface);
 void create_vert_edge_map(ListBase **map, IndexNode **mem, const struct MEdge *medge,
-                         const int totvert, const int totedge);
+                          const int totvert, const int totedge);
 
 /* Partial Mesh Visibility */
 struct PartialVisibility *mesh_pmv_copy(struct PartialVisibility *);
index e14db31607a30a23c9c28cb1702ec3310ae326a5..081b79b44d63e674de1aae77f15d937adc7837c0 100644 (file)
@@ -91,7 +91,7 @@ typedef struct SculptSession {
        unsigned int texcache_side, *texcache, texcache_actual;
 
        /* Layer brush persistence between strokes */
-        float (*layer_co)[3]; /* Copy of the mesh vertices' locations */
+       float (*layer_co)[3]; /* Copy of the mesh vertices' locations */
 
        struct SculptStroke *stroke;
        struct StrokeCache *cache;
index a16e55ce8ff19bc9e627ad8dd48636954fce89ec..715febf2fd16088a4c0cbff81dc892dd1184c330 100644 (file)
@@ -198,8 +198,8 @@ int input_have_to_preprocess(
        SeqRenderData context, struct Sequence * seq, float cfra);
 
 void seq_proxy_rebuild(struct Main * bmain, 
-                      struct Scene *scene, struct Sequence * seq,
-                      short *stop, short *do_update, float *progress);
+                       struct Scene *scene, struct Sequence * seq,
+                       short *stop, short *do_update, float *progress);
 
 
 /* **********************************************************************
index 09021e71025f8ab0a2ab9a54b7c8bba5335b93e6..5303baddbca2453fed3a43d0d58bb116f184a742 100644 (file)
@@ -333,7 +333,7 @@ void brush_reset_sculpt(Brush *br)
        /* enable this to see any non-default
           settings used by a brush:
 
-          brush_debug_print_state(br);
+       brush_debug_print_state(br);
        */
 
        brush_set_defaults(br);
index 6fb3922122e8ba983bc21a8bcad7bb43c907f09f..1e38f666da790dc6e45a00873b3e373fe7145ce5 100644 (file)
@@ -231,7 +231,7 @@ static struct PBVH *cdDM_getPBVH(Object *ob, DerivedMesh *dm)
                cddm->pbvh = BLI_pbvh_new();
                cddm->pbvh_draw = can_pbvh_draw(ob, dm);
                BLI_pbvh_build_mesh(cddm->pbvh, me->mface, me->mvert,
-                                  me->totface, me->totvert);
+                                   me->totface, me->totvert);
 
                if(ss->modifiers_active && ob->derivedDeform) {
                        DerivedMesh *deformdm= ob->derivedDeform;
index 57a9dbcbc0fc9d0c1519b0e4b13597cc603f5645..4d5dce14b27fd1962899d5bc1e410ce244523789 100644 (file)
@@ -60,9 +60,9 @@ double tval( void )
 }
 #else
 #include <sys/time.h>
-                        static struct timeval _tstart, _tend;
-        static struct timezone tz;
-        void tstart ( void )
+static struct timeval _tstart, _tend;
+static struct timezone tz;
+void tstart ( void )
 {
        gettimeofday ( &_tstart, &tz );
 }
index 160f5703a01b85e2f5580c2027c26c94e379cb9a..8a6e8faf29af2055e15715ab6c397d8fa4266460 100644 (file)
@@ -67,8 +67,8 @@
 
 /* local */
 static int cu_isectLL(float *v1, float *v2, float *v3, float *v4, 
-                          short cox, short coy, 
-                          float *labda, float *mu, float *vec);
+                      short cox, short coy,
+                      float *labda, float *mu, float *vec);
 
 void unlink_curve(Curve *cu)
 {
index c6b4cab62152f094c4e8885e0d1bc8e9d8bf1244..d7cc5376e2139c159ac1ffe0039dbd0a58b3ae5a 100644 (file)
@@ -90,7 +90,7 @@ typedef struct LayerTypeInfo {
         * count gives the number of elements in sources
         */
        void (*interp)(void **sources, float *weights, float *sub_weights,
-                                  int count, void *dest);
+                      int count, void *dest);
 
        /* a function to swap the data in corners of the element */
        void (*swap)(void *data, const int *corner_indices);
index 7f099c03d0918269aebde0c7a0ce8605d235e893..b1e39b1d76862ad2dcdf9c34337b3f2fb10f67f5 100644 (file)
@@ -1148,8 +1148,8 @@ void graph_bfs(void)
                        set_node_xy(node, node->BFS_dist*DEPSX*2, pos[node->BFS_dist]*DEPSY*2);
                        node->color = DAG_BLACK;
                        /*
-                        fprintf(stderr,"BFS node : %20s %i %5.0f %5.0f\n",((ID *) node->ob)->name,node->BFS_dist, node->x, node->y);   
-                        */
+                       fprintf(stderr,"BFS node : %20s %i %5.0f %5.0f\n",((ID *) node->ob)->name,node->BFS_dist, node->x, node->y);
+                       */
                }
        }
        queue_delete(nqueue);
@@ -1208,8 +1208,8 @@ int pre_and_post_source_BFS(DagForest *dag, short mask, DagNode *source, graph_a
                        post_func(node->ob,data);
                        node->color = DAG_BLACK;
                        /*
-                        fprintf(stderr,"BFS node : %20s %i %5.0f %5.0f\n",((ID *) node->ob)->name,node->BFS_dist, node->x, node->y);   
-                        */
+                       fprintf(stderr,"BFS node : %20s %i %5.0f %5.0f\n",((ID *) node->ob)->name,node->BFS_dist, node->x, node->y);
+                       */
                }
        }
        queue_delete(nqueue);
@@ -1325,7 +1325,7 @@ DagNodeQueue * graph_dfs(void)
                                set_node_xy(node, node->DFS_dist*DEPSX*2, pos[node->DFS_dist]*DEPSY*2);
                                
                                /*
-                                fprintf(stderr,"DFS node : %20s %i %i %i %i\n",((ID *) node->ob)->name,node->BFS_dist, node->DFS_dist, node->DFS_dvtm, node->DFS_fntm );       
+                               fprintf(stderr,"DFS node : %20s %i %i %i %i\n",((ID *) node->ob)->name,node->BFS_dist, node->DFS_dist, node->DFS_dvtm, node->DFS_fntm );
                                */
                                push_stack(retqueue,node);
                                
@@ -1574,7 +1574,7 @@ int       is_acyclic( DagForest   *dag) {
 
 void set_node_xy(DagNode *node, float x, float y)
 {
-        node->x = x;
+       node->x = x;
        node->y = y;
 }
 
index 313143f362b187a8055604343af381c0c416c688..df3694e0bf1c0014363aae0d410e4e283d597bef 100644 (file)
@@ -79,9 +79,9 @@ double itval(void)
 // #include <pmmintrin.h>
 // #include <pthread.h>
 
-                        static struct timeval _itstart, _itend;
-        static struct timezone itz;
-        void itstart(void)
+static struct timeval _itstart, _itend;
+static struct timezone itz;
+void itstart(void)
 {
        gettimeofday(&_itstart, &itz);
 }
index 650f85da5b3ef64aa39c61a63134d6a913564022..7332b89f629aaf384e6bfbe7bd9dac3ca0eaf057 100644 (file)
@@ -671,10 +671,10 @@ static ID *alloc_libblock_notest(short type)
                        break;
                case ID_PA:
                        id = MEM_callocN(sizeof(ParticleSettings), "ParticleSettings");
-                         break;
+                       break;
                case ID_WM:
                        id = MEM_callocN(sizeof(wmWindowManager), "Window manager");
-                         break;
+                       break;
                case ID_GD:
                        id = MEM_callocN(sizeof(bGPdata), "Grease Pencil");
                        break;
index 5c82acde99b1bef4d37a3e512acf0ff80d599abd..d8628e526ef8fd21aa44e9db8845b230acd61cca 100644 (file)
@@ -776,7 +776,7 @@ void *new_pgn_element(int size)
        if(cur) {
                if(size+offs < blocksize) {
                        adr= (void *) (cur->data+offs);
-                        offs+= size;
+                       offs+= size;
                        return adr;
                }
        }
index 6579d7a01f486d8ac90bb5c20448092ca636c642..ae0774eb34fab0f35d3f1d49781901969f252140 100644 (file)
@@ -1147,10 +1147,10 @@ static MultiresFace *find_old_face(ListBase *map, MultiresFace *faces, int v1, i
        IndexNode *n1;
        int v[4], i, j;
 
-        v[0]= v1;
-        v[1]= v2;
-        v[2]= v3;
-        v[3]= v4;
+       v[0]= v1;
+       v[1]= v2;
+       v[2]= v3;
+       v[3]= v4;
 
        for(n1 = map[v1].first; n1; n1 = n1->next) {
                int fnd[4] = {0, 0, 0, 0};
index fa023d8fb4375a8ca9297bc4df02791a872260fb..c4edddf587c8741a4e80681bcd9fac236a991b93 100644 (file)
@@ -961,8 +961,8 @@ void ntreeSetOutput(bNodeTree *ntree)
                        
                        /* we need a check for which output node should be tagged like this, below an exception */
                        if(node->type==CMP_NODE_OUTPUT_FILE)
-                          continue;
-                          
+                               continue;
+
                        /* there is more types having output class, each one is checked */
                        for(tnode= ntree->nodes.first; tnode; tnode= tnode->next) {
                                if(tnode->typeinfo->nclass==NODE_CLASS_OUTPUT) {
index a9aeb37e478fd1881b23862777d58ddc72c19760..dbfda18942a61b557ea3d6978c933f6526741617 100644 (file)
@@ -1127,7 +1127,7 @@ static PTCacheFile *ptcache_file_open(PTCacheID *pid, int mode, int cfra)
                if (!BLI_exists(filename)) {
                        return NULL;
                }
-                fp = fopen(filename, "rb");
+               fp = fopen(filename, "rb");
        } else if (mode==PTCACHE_FILE_WRITE) {
                BLI_make_existing_file(filename); /* will create the dir if needs be, same as //textures is created */
                fp = fopen(filename, "wb");
index 3699cf40aa8b09802d1b1d235023fcf4e694bf2d..e8e9c7548064b23512df0ed58890d0b74f48afe5 100644 (file)
@@ -2144,7 +2144,7 @@ static struct ImBuf * do_transform_effect(
        struct ImBuf * out = prepare_effect_imbufs(context,ibuf1, ibuf2, ibuf3);
 
        do_transform(context.scene, seq, facf0, 
-                    context.rectx, context.recty, ibuf1, out);
+                    context.rectx, context.recty, ibuf1, out);
 
        return out;
 }
@@ -2541,7 +2541,7 @@ static void RVIsolateHighlights_byte (unsigned char* in, unsigned char* out,
 
        for(y=0;y< height;y++) {
                for (x=0;x< width;x++) {
-                        index= (x+y*width)*4;
+                       index= (x+y*width)*4;
 
                        /*      Isolate the intensity */
                        intensity=(in[index+GlowR]+in[index+GlowG]+in[index+GlowB]-threshold);
@@ -2570,7 +2570,7 @@ static void RVIsolateHighlights_float (float* in, float* out,
 
        for(y=0;y< height;y++) {
                for (x=0;x< width;x++) {
-                        index= (x+y*width)*4;
+                       index= (x+y*width)*4;
 
                        /*      Isolate the intensity */
                        intensity=(in[index+GlowR]+in[index+GlowG]+in[index+GlowB]-threshold);
index 3e9b570d10430ab394c394774f59cf40e3c6f1cd..53878176fec18a5f49d465e73fb7f61c108b09ce 100644 (file)
@@ -1160,13 +1160,13 @@ static void seq_open_anim_file(Sequence * seq)
                return;
        }
 
-       BLI_join_dirfile(name, sizeof(name), 
-                        seq->strip->dir, seq->strip->stripdata->name);
+       BLI_join_dirfile(name, sizeof(name),
+                        seq->strip->dir, seq->strip->stripdata->name);
        BLI_path_abs(name, G.main->name);
        
        seq->anim = openanim(name, IB_rect |
-                            ((seq->flag & SEQ_FILTERY) ? 
-                             IB_animdeinterlace : 0), seq->streamindex);
+                            ((seq->flag & SEQ_FILTERY) ?
+                                 IB_animdeinterlace : 0), seq->streamindex);
 
        if (seq->anim == NULL) {
                return;
@@ -1211,8 +1211,8 @@ static int seq_proxy_get_fname(SeqRenderData context, Sequence * seq, int cfra,
        }
 
        if (seq->flag & SEQ_USE_PROXY_CUSTOM_FILE) {
-               BLI_join_dirfile(name, PROXY_MAXFILE, 
-                                dir, seq->strip->proxy->file);
+               BLI_join_dirfile(name, PROXY_MAXFILE,
+                                dir, seq->strip->proxy->file);
                BLI_path_abs(name, G.main->name);
 
                return TRUE;
@@ -1227,14 +1227,13 @@ static int seq_proxy_get_fname(SeqRenderData context, Sequence * seq, int cfra,
 
        if (seq->type == SEQ_IMAGE) {
                BLI_snprintf(name, PROXY_MAXFILE, "%s/images/%d/%s_proxy", dir,
-                        context.preview_render_size, 
-                        give_stripelem(seq, cfra)->name);
+                            context.preview_render_size,
+                            give_stripelem(seq, cfra)->name);
                frameno = 1;
        } else {
-               frameno = (int) give_stripelem_index(seq, cfra) 
-                       + seq->anim_startofs;
+               frameno = (int) give_stripelem_index(seq, cfra) + seq->anim_startofs;
                BLI_snprintf(name, PROXY_MAXFILE, "%s/proxy_misc/%d/####", dir, 
-                        context.preview_render_size);
+                            context.preview_render_size);
        }
 
        BLI_path_abs(name, G.main->name);
@@ -1504,7 +1503,7 @@ static void color_balance_byte_byte(Sequence * seq, ImBuf* ibuf, float mul)
 
        for (c = 0; c < 3; c++) {
                make_cb_table_byte(cb.lift[c], cb.gain[c], cb.gamma[c],
-                                  cb_tab[c], mul);
+                                  cb_tab[c], mul);
        }
 
        while (p < e) {
@@ -1847,14 +1846,14 @@ static ImBuf* seq_render_effect_strip_impl(
 
        switch (early_out) {
        case EARLY_NO_INPUT:
-               out = sh.execute(context, seq, cfra, fac, facf, 
-                                NULL, NULL, NULL);
+               out = sh.execute(context, seq, cfra, fac, facf,
+                                NULL, NULL, NULL);
                break;
        case EARLY_DO_EFFECT:
                for(i=0; i<3; i++) {
                        if(input[i])
                                ibuf[i] = seq_render_strip(
-                                       context, input[i], cfra);
+                                           context, input[i], cfra);
                }
 
                if (ibuf[0] && ibuf[1]) {
@@ -2909,7 +2908,7 @@ int seq_single_check(Sequence *seq)
        return (seq->len==1 && (
                        seq->type == SEQ_IMAGE 
                        || ((seq->type & SEQ_EFFECT) && 
-                           get_sequence_effect_num_inputs(seq->type) == 0)));
+                   get_sequence_effect_num_inputs(seq->type) == 0)));
 }
 
 /* check if the selected seq's reference unselected seq's */
index 7f18db63c369dc9c4205e31409a2f08e73f2c93c..d3d6a658edede45991824d2c912d612486376d82 100644 (file)
@@ -561,7 +561,7 @@ static void ccd_build_deflector_hash(Scene *scene, Object *vertexowner, GHash *h
                        }/*--- only with deflecting set */
 
                }/* mesh && layer*/
-          base = base->next;
+               base = base->next;
        } /* while (base) */
 }
 
@@ -589,7 +589,7 @@ static void ccd_update_deflector_hash(Scene *scene, Object *vertexowner, GHash *
                        }/*--- only with deflecting set */
 
                }/* mesh && layer*/
-          base = base->next;
+               base = base->next;
        } /* while (base) */
 }
 
@@ -3356,7 +3356,7 @@ static void mesh_to_softbody(Scene *scene, Object *ob)
                                build_bps_springlist(ob); /* yes we need to do it again*/
                        }
                        springs_from_mesh(ob); /* write the 'rest'-length of the springs */
-                          if (ob->softflag & OB_SB_SELF) {calculate_collision_balls(ob);}
+                       if (ob->softflag & OB_SB_SELF) {calculate_collision_balls(ob);}
 
                }
 
index 2646f5164b23d50a4fdad19ef9fdc9547b2fccaa..036a52a12357511818cc44abf20209e736f99c19 100644 (file)
@@ -343,8 +343,8 @@ static AVFrame* generate_video_frame(uint8_t* pixels, ReportList *reports)
 
        if (c->pix_fmt != PIX_FMT_BGR32) {
                sws_scale(img_convert_ctx, (const uint8_t * const*) rgb_frame->data,
-                         rgb_frame->linesize, 0, c->height, 
-                         current_frame->data, current_frame->linesize);
+                         rgb_frame->linesize, 0, c->height,
+                         current_frame->data, current_frame->linesize);
                delete_picture(rgb_frame);
        }
        return current_frame;
index 94ae741250fade038146cb1bd4d717c0a3c20cee..c09a7c7c0d2d5d23b246072d56a92dfcd92e1b4e 100644 (file)
@@ -63,7 +63,7 @@ extern "C" {
 /* Match STRING against the filename pattern PATTERN,
    returning zero if it matches, FNM_NOMATCH if not.  */
 extern int fnmatch __P ((const char *__pattern, const char *__string,
-                        int __flags));
+                         int __flags));
 
 #ifdef __cplusplus
 }
index c25243a9d369bd716c441d5722e11a69e3051a1c..e17a37c0a12632dbe857d8bd67d5cf25aa4af896 100644 (file)
@@ -77,7 +77,7 @@ void BLI_pbvh_search_gather(PBVH *bvh,
    hit first */
 
 void BLI_pbvh_raycast(PBVH *bvh, BLI_pbvh_HitOccludedCallback cb, void *data,
-                         float ray_start[3], float ray_normal[3], int original);
+                      float ray_start[3], float ray_normal[3], int original);
 int BLI_pbvh_node_raycast(PBVH *bvh, PBVHNode *node, float (*origco)[3],
        float ray_start[3], float ray_normal[3], float *dist);
 
index ef6608e2c252568ac68f1c6f033b380a0a4b85c5..e858e7849913a7ef7c92cd8d592adbc222f69567 100644 (file)
@@ -47,13 +47,13 @@ typedef struct VFontData {
        // float            resol[MAX_VF_CHARS];
        // float            width[MAX_VF_CHARS];
        // float            *points[MAX_VF_CHARS];
-        char           name[128];      
+       char            name[128];
 } VFontData;
 
 typedef struct VChar {
        struct VChar    *next, *prev;
-        ListBase        nurbsbase;
-       intptr_t   index;
+       ListBase        nurbsbase;
+       intptr_t        index;
        float           resol;
        float           width;
        float           *points;
index 523653714217182ae3daf8d90deaac051d8a3349..62a38e7933a05b626a00d4bddc8ff079b3ee95b8 100644 (file)
@@ -62,8 +62,10 @@ struct Heap {
 #define HEAP_COMPARE(a, b) (a->value < b->value)
 #define HEAP_EQUALS(a, b) (a->value == b->value)
 #define HEAP_SWAP(heap, i, j) \
-       { SWAP(int, heap->tree[i]->index, heap->tree[j]->index); \
-         SWAP(HeapNode*, heap->tree[i], heap->tree[j]);  }
+{                                                                             \
+       SWAP(int, heap->tree[i]->index, heap->tree[j]->index);                    \
+       SWAP(HeapNode*, heap->tree[i], heap->tree[j]);                            \
+}
 
 /***/
 
index 65c5dffa33cce90326fdc4d6249f161d631e9fc8..0eda3e788245f69335784c4923be3c60b0697d97 100644 (file)
@@ -85,7 +85,7 @@ void BLI_edgehash_insert(EdgeHash *eh, int v0, int v1, void *val) {
                v1 ^= v0;
                v0 ^= v1;
        }
-        hash = EDGEHASH(v0,v1)%eh->nbuckets;
+       hash = EDGEHASH(v0,v1)%eh->nbuckets;
 
        e->v0 = v0;
        e->v1 = v1;
index 5a8e378e8c4185105f32736f5afae237956c8a6f..0ac6e0ba4dfc6d0decba5c201d17af43cac9090a 100644 (file)
@@ -507,13 +507,13 @@ static void build_sub(PBVH *bvh, int node_index, BB *cb, BBC *prim_bbc,
        bvh->nodes[node_index].orig_vb= bvh->nodes[node_index].vb;
 
        end = partition_indices(bvh->prim_indices, offset, offset + count - 1,
-                               axis,
-                               (cb->bmax[axis] + cb->bmin[axis]) * 0.5f,
-                               prim_bbc);
+                               axis,
+                               (cb->bmax[axis] + cb->bmin[axis]) * 0.5f,
+                               prim_bbc);
        check_partitioning(bvh->prim_indices, offset, offset + count - 1,
-                          axis,
-                          (cb->bmax[axis] + cb->bmin[axis]) * 0.5f,
-                          prim_bbc, end);
+                          axis,
+                          (cb->bmax[axis] + cb->bmin[axis]) * 0.5f,
+                          prim_bbc, end);
 
        build_sub(bvh, bvh->nodes[node_index].children_offset, NULL,
                  prim_bbc, offset, end - offset);
index 4bd17fcf0b9050efba7765bf75f7a5459fad0bc2..41b1fea32a6e9af83cda41803c94f074bfd4af74 100644 (file)
@@ -165,7 +165,7 @@ static void *new_mem_element(int size)
        if(cur) {
                if(size+offs < blocksize) {
                        adr= (void *) (cur->data+offs);
-                        offs+= size;
+                       offs+= size;
                        return adr;
                }
        }
index 65e047ceb22a032b91fc52a481500475622b518a..3fd661a52dae058c639f7c8e6a42defa81b2e8a7 100644 (file)
@@ -1554,14 +1554,14 @@ static void IDP_DirectLinkProperty(IDProperty *prop, int switch_endian, FileData
                        IDP_DirectLinkIDPArray(prop, switch_endian, fd);
                        break;
                case IDP_DOUBLE:
-                       /*erg, stupid doubles.  since I'm storing them
-                        in the same field as int val; val2 in the
-                        IDPropertyData struct, they have to deal with
-                        endianness specifically
-                        
-                        in theory, val and val2 would've already been swapped
-                        if switch_endian is true, so we have to first unswap
-                        them then reswap them as a single 64-bit entity.
+                       /* erg, stupid doubles.  since I'm storing them
+                        in the same field as int val; val2 in the
+                        IDPropertyData struct, they have to deal with
+                        endianness specifically
+
+                        in theory, val and val2 would've already been swapped
+                        if switch_endian is true, so we have to first unswap
+                        them then reswap them as a single 64-bit entity.
                         */
                        
                        if (switch_endian) {
@@ -3567,8 +3567,8 @@ static void lib_link_mtface(FileData *fd, Mesh *me, MTFace *mtface, int totface)
        int i;
 
        /* Add pseudo-references (not fake users!) to images used by texface. A
-          little bogus; it would be better if each mesh consistently added one ref
-          to each image it used. - z0r */
+        * little bogus; it would be better if each mesh consistently added one ref
+        * to each image it used. - z0r */
        for (i=0; i<totface; i++, tf++) {
                tf->tpage= newlibadr(fd, me->id.lib, tf->tpage);
                if(tf->tpage && tf->tpage->id.us==0)
@@ -3769,7 +3769,7 @@ static void direct_link_mesh(FileData *fd, Mesh *mesh)
        }
 
        /* if multires is present but has no valid vertex data,
-          there's no way to recover it; silently remove multires */
+        * there's no way to recover it; silently remove multires */
        if(mesh->mr && !mesh->mr->verts) {
                multires_free(mesh->mr);
                mesh->mr = NULL;
@@ -8844,7 +8844,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                        
                        /* make sure old cameras have title safe on */
                        if (!(cam->flag & CAM_SHOWTITLESAFE))
-                        cam->flag |= CAM_SHOWTITLESAFE;
+                               cam->flag |= CAM_SHOWTITLESAFE;
                        
                        /* set an appropriate camera passepartout alpha */
                        if (!(cam->passepartalpha)) cam->passepartalpha = 0.2f;
@@ -9141,7 +9141,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                
                for(group= main->group.first; group; group= group->id.next)
                        if(group->layer==0)
-                          group->layer= (1<<20)-1;
+                               group->layer= (1<<20)-1;
                
                /* History fix (python?), shape key adrcode numbers have to be sorted */
                sort_shape_fix(main);
index 077a06ce6cae8ec70104ea3fde4875a1323881dd..df786c38c716a5868465ebb3a74107d8b340a178 100644 (file)
@@ -267,7 +267,7 @@ void ArmatureExporter::export_controller(Object* ob, Object *ob_arm)
        std::string controller_id = get_controller_id(ob_arm, ob);
 
        openSkin(controller_id, controller_name,
-                        COLLADABU::URI(COLLADABU::Utils::EMPTY_STRING, get_geometry_id(ob)));
+                COLLADABU::URI(COLLADABU::Utils::EMPTY_STRING, get_geometry_id(ob)));
 
        add_bind_shape_mat(ob);
 
index 7e9634da21d8d1d5f1b7cbd58794bc1eccd29daf..bababf880a6fb055b417a01051a3b8e492a3bf2b 100644 (file)
@@ -112,8 +112,7 @@ void ArmatureImporter::create_unskinned_bone( COLLADAFW::Node *node, EditBone *p
        bone->roll=angle;
        // set head
        copy_v3_v3(bone->head, mat[3]);
-   
-       
+
        // set tail, don't set it to head because 0-length bones are not allowed
        float vec[3] = {0.0f, 0.5f, 0.0f};
        add_v3_v3v3(bone->tail, bone->head, vec);
@@ -427,7 +426,7 @@ void ArmatureImporter::create_armature_bones( )
                   TODO:
                   check if bones have already been created for a given joint
                */
-        leaf_bone_length = FLT_MAX;
+               leaf_bone_length = FLT_MAX;
                create_unskinned_bone(*ri, NULL, (*ri)->getChildNodes().getCount(), NULL, ob_arm);
 
                fix_leaf_bones();
@@ -593,17 +592,16 @@ void ArmatureImporter::set_pose ( Object * ob_arm ,  COLLADAFW::Node * root_node
        }
        else {
                copy_m4_m4(mat, obmat);
-                float invObmat[4][4];
-          invert_m4_m4(invObmat, ob_arm->obmat);
-          mul_m4_m4m4(pchan->pose_mat, mat, invObmat);
-         
+               float invObmat[4][4];
+               invert_m4_m4(invObmat, ob_arm->obmat);
+               mul_m4_m4m4(pchan->pose_mat, mat, invObmat);
        }
-               
-        mat4_to_axis_angle(ax,&angle,mat);
-          pchan->bone->roll = angle;
-       
 
-   COLLADAFW::NodePointerArray& children = root_node->getChildNodes();
+       mat4_to_axis_angle(ax,&angle,mat);
+       pchan->bone->roll = angle;
+
+
+       COLLADAFW::NodePointerArray& children = root_node->getChildNodes();
        for (unsigned int i = 0; i < children.getCount(); i++) {
                set_pose(ob_arm, children[i], bone_name, mat);
        }
@@ -762,8 +760,8 @@ Object *ArmatureImporter::get_armature_for_joint(COLLADAFW::Node *node)
                if (skin.uses_joint_or_descendant(node))
                        return skin.get_armature();
        }
-   
-        std::map<COLLADAFW::UniqueId, Object*>::iterator arm;
+
+       std::map<COLLADAFW::UniqueId, Object*>::iterator arm;
        for (arm = unskinned_armature_map.begin(); arm != unskinned_armature_map.end(); arm++) {
                if(arm->first == node->getUniqueId() )
                        return arm->second;
index d2e3b8be4f5e8d0b6b461250a15278a737674c6f..343badaca28042ab45110647a3ee3b77df1bdff0 100644 (file)
@@ -107,7 +107,7 @@ private:
                                         float parent_mat[][4], bArmature *arm);
 
        void create_unskinned_bone(COLLADAFW::Node *node, EditBone *parent, int totchild,
-                                float parent_mat[][4], Object * ob_arm);
+                                  float parent_mat[][4], Object * ob_arm);
 
        void add_leaf_bone(float mat[][4], EditBone *bone, COLLADAFW::Node * node);
 
index 7376b2e804cc5f1822ed297cfbaf9b0bd087adae..caffdc291184cbf6601e2751cbc57cc5639cc385 100644 (file)
@@ -4108,7 +4108,7 @@ void ARMATURE_OT_select_hierarchy(wmOperatorType *ot)
 
        /* props */
        RNA_def_enum(ot->srna, "direction", direction_items,
-                        BONE_SELECT_PARENT, "Direction", "");
+                    BONE_SELECT_PARENT, "Direction", "");
        RNA_def_boolean(ot->srna, "extend", 0, "Add to Selection", "");
 }
 
@@ -5207,9 +5207,9 @@ static int pose_hide_exec(bContext *C, wmOperator *op)
        bArmature *arm= ob->data;
 
        if(RNA_boolean_get(op->ptr, "unselected"))
-          bone_looper(ob, arm->bonebase.first, NULL, hide_unselected_pose_bone_cb);
+               bone_looper(ob, arm->bonebase.first, NULL, hide_unselected_pose_bone_cb);
        else
-          bone_looper(ob, arm->bonebase.first, NULL, hide_selected_pose_bone_cb);
+               bone_looper(ob, arm->bonebase.first, NULL, hide_selected_pose_bone_cb);
        
        /* note, notifier might evolve */
        WM_event_add_notifier(C, NC_OBJECT|ND_BONE_SELECT, ob);
index ccc375a03f946dfb27d3a449ceae8e9eb6115be0..451e672da7c86af11b70eaa1ba2f9100a744e497 100644 (file)
@@ -2287,8 +2287,8 @@ static void retargetArctoArcAggresive(bContext *C, RigGraph *rigg, RigArc *iarc,
 
        /* set joints to best position */
        for (edge = iarc->edges.first, i = 0;
-                edge;
-                edge = edge->next, i++)
+            edge;
+            edge = edge->next, i++)
        {
                float *no = NULL;
                if (i < nb_joints)
index 2557c7f7c72f24f5d8cef18df6ce427f1c8205b9..59b3f483b38094dcc09ce4185b20e689ea6e7a73 100644 (file)
@@ -42,7 +42,7 @@ extern const char ED_lorem[];
 enum { DEL_ALL, DEL_NEXT_CHAR, DEL_PREV_CHAR, DEL_SELECTION, DEL_NEXT_SEL, DEL_PREV_SEL };
 enum { CASE_LOWER, CASE_UPPER };
 enum { LINE_BEGIN, LINE_END, PREV_CHAR, NEXT_CHAR, PREV_WORD, NEXT_WORD,
-          PREV_LINE, NEXT_LINE, PREV_PAGE, NEXT_PAGE };
+       PREV_LINE, NEXT_LINE, PREV_PAGE, NEXT_PAGE };
 
 void FONT_OT_text_insert(struct wmOperatorType *ot);
 void FONT_OT_line_break(struct wmOperatorType *ot);
index 0556291c19726e3781c3cd327d06495a6346299d..1f6673137a16a345576531a8517fe207d37a6916 100644 (file)
@@ -688,8 +688,8 @@ static void key_to_bezt(float *key, BezTriple *basebezt, BezTriple *bezt)
 
 static void bezt_to_key(BezTriple *bezt, float *key)
 {
-        memcpy(key, bezt->vec, sizeof(float) * 9);
-        key[9] = bezt->alfa;
+       memcpy(key, bezt->vec, sizeof(float) * 9);
+       key[9] = bezt->alfa;
 }
 
 static void calc_keyHandles(ListBase *nurb, float *key)
index 7993e11ea55ef8504228cf0308f43af66dcb4617..bd746e36ef457a27259bdca477adc33fbfaadcf0 100644 (file)
@@ -40,7 +40,7 @@ struct wmWindowManager;
 /* sculpt.c */
 void ED_operatortypes_sculpt(void);
 void sculpt_get_redraw_planes(float planes[4][4], struct ARegion *ar,
-                                  struct RegionView3D *rv3d, struct Object *ob);
+                              struct RegionView3D *rv3d, struct Object *ob);
 void ED_sculpt_force_update(struct bContext *C);
 
 /* paint_ops.c */
index cd5fee139ee0a7a2879128da62ce2922492de718..35fabb3b80e90d4a3e7dc7362dbdeb4bada30563 100644 (file)
@@ -727,7 +727,7 @@ void uiTemplateDopeSheetFilter(uiLayout *layout, struct bContext *C, struct Poin
 void uiTemplateID(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname,
        const char *newop, const char *openop, const char *unlinkop);
 void uiTemplateIDBrowse(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname,
-                                 const char *newop, const char *openop, const char *unlinkop);
+                        const char *newop, const char *openop, const char *unlinkop);
 void uiTemplateIDPreview(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname,
        const char *newop, const char *openop, const char *unlinkop, int rows, int cols);
 void uiTemplateAnyID(uiLayout *layout, struct PointerRNA *ptr, const char *propname, 
@@ -744,7 +744,7 @@ void uiTemplateVectorscope(uiLayout *layout, struct PointerRNA *ptr, const char
 void uiTemplateCurveMapping(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int type, int levels, int brush);
 void uiTemplateColorWheel(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int value_slider, int lock, int lock_luminosity, int cubic);
 void uiTemplateLayers(uiLayout *layout, struct PointerRNA *ptr, const char *propname,
-                         PointerRNA *used_ptr, const char *used_propname, int active_layer);
+                      PointerRNA *used_ptr, const char *used_propname, int active_layer);
 void uiTemplateImage(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, struct PointerRNA *userptr, int compact);
 void uiTemplateImageLayers(uiLayout *layout, struct bContext *C, struct Image *ima, struct ImageUser *iuser);
 void uiTemplateRunningJobs(uiLayout *layout, struct bContext *C);
index fab983cee4355f96b5b01cea346286acc9322e85..81b42277055233344075ce1b675f767434092756 100644 (file)
@@ -274,7 +274,7 @@ void ui_bounds_block(uiBlock *block)
                        if(bt->x1 < block->minx) block->minx= bt->x1;
                        if(bt->y1 < block->miny) block->miny= bt->y1;
        
-                         if(bt->x2 > block->maxx) block->maxx= bt->x2;
+                       if(bt->x2 > block->maxx) block->maxx= bt->x2;
                        if(bt->y2 > block->maxy) block->maxy= bt->y2;
 
                        bt= bt->next;
@@ -363,7 +363,7 @@ static void ui_popup_bounds_block(const bContext *C, uiBlock *block, int bounds_
        oldheight= oldheight > 0 ? oldheight : MAX2(1, height);
 
        /* offset block based on mouse position, user offset is scaled
-          along in case we resized the block in ui_text_bounds_block */
+        * along in case we resized the block in ui_text_bounds_block */
        startx= window->eventstate->x + block->minx + (block->mx*width)/oldwidth;
        starty= window->eventstate->y + block->miny + (block->my*height)/oldheight;
 
@@ -633,7 +633,7 @@ static int ui_but_update_from_old_block(const bContext *C, uiBlock *block, uiBut
                                }
                                
                                /* copy hardmin for list rows to prevent 'sticking' highlight to mouse position
-                                  when scrolling without moving mouse (see [#28432]) */
+                                * when scrolling without moving mouse (see [#28432]) */
                                if(ELEM(oldbut->type, ROW, LISTROW))
                                        oldbut->hardmax= but->hardmax;
                                
@@ -659,7 +659,7 @@ static int ui_but_update_from_old_block(const bContext *C, uiBlock *block, uiBut
 }
 
 /* needed for temporarily rename buttons, such as in outliner or fileselect,
  they should keep calling uiDefButs to keep them alive */
* they should keep calling uiDefButs to keep them alive */
 /* returns 0 when button removed */
 int uiButActiveOnly(const bContext *C, uiBlock *block, uiBut *but)
 {
@@ -1890,8 +1890,8 @@ static void ui_free_but(const bContext *C, uiBut *but)
        if(but->func_argN) MEM_freeN(but->func_argN);
        if(but->active) {
                /* XXX solve later, buttons should be free-able without context ideally,
-                  however they may have open tooltips or popup windows, which need to
-                  be closed using a context pointer */
+                * however they may have open tooltips or popup windows, which need to
+                * be closed using a context pointer */
                if(C) 
                        ui_button_active_free(C, but);
                else
@@ -2424,14 +2424,13 @@ void ui_block_do_align(uiBlock *block)
 }
 
 /*
-ui_def_but is the function that draws many button types
+ * ui_def_but is the function that draws many button types
 
-for float buttons:
-       "a1" Click Step (how much to change the value each click)
-       "a2" Number of decimal point values to display. 0 defaults to 3 (0.000) 1,2,3, and a maximum of 4,
-          all greater values will be clamped to 4.
-
-*/
+ * for float buttons:
+ *   "a1" Click Step (how much to change the value each click)
+ *   "a2" Number of decimal point values to display. 0 defaults to 3 (0.000)
+ *        1,2,3, and a maximum of 4, all greater values will be clamped to 4.
+ */
 static uiBut *ui_def_but(uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip)
 {
        uiBut *but;
index 67030f1aca7020f7a31350b33861f9933f9e638f..1ed05bc54f06be4a4d213d85e5df093cb4403c86 100644 (file)
@@ -1326,9 +1326,9 @@ static void ui_draw_but_curve_grid(rcti *rect, float zoomx, float zoomy, float o
 
 static void glColor3ubvShade(unsigned char *col, int shade)
 {
-       glColor3ub(col[0]-shade>0?col[0]-shade:0, 
-                          col[1]-shade>0?col[1]-shade:0,
-                          col[2]-shade>0?col[2]-shade:0);
+       glColor3ub(col[0]-shade>0?col[0]-shade:0,
+                  col[1]-shade>0?col[1]-shade:0,
+                  col[2]-shade>0?col[2]-shade:0);
 }
 
 void ui_draw_but_CURVE(ARegion *ar, uiBut *but, uiWidgetColors *wcol, rcti *rect)
index 0c0163d0f248a2a8f55f94717450e80561433577..845cc29c91bb40d230112909aabd449ae1114acd 100644 (file)
@@ -525,9 +525,9 @@ void EM_set_flag_all(EditMesh *em, int flag)
 
 void EM_set_flag_all_selectmode(EditMesh *em, int flag)
 {
-        EditVert *eve;
-        EditEdge *eed;
-        EditFace *efa;
+       EditVert *eve;
+       EditEdge *eed;
+       EditFace *efa;
 
        int selvert= 0, seledge= 0, selface= 0;
 
index b4bee60e4159b0155b2249ad2982bc88dc7d3f73..3e4051cc751105d953f40f8b7319663195a849a8 100644 (file)
@@ -1312,7 +1312,7 @@ void MESH_OT_select_similar(wmOperatorType *ot)
 
 int mesh_layers_menu_charlen(CustomData *data, int type)
 {
-        int i, len = 0;
+       int i, len = 0;
        /* see if there is a duplicate */
        for(i=0; i<data->totlayer; i++) {
                if((&data->layers[i])->type == type) {
index 1852d90eed0ec866587e19ff44ca7c0222340380..4ac418fdd9ac835d6397d228ec0b661d1f34a705 100644 (file)
@@ -1651,7 +1651,7 @@ static void fill_quad_single(EditMesh *em, EditFace *efa, struct GHash *gh, int
                facecopy(em, efa,hold);
                if(i+1 != (vertsize-1)/2) {
                        if(seltype == SUBDIV_SELECT_INNER) {
-                                hold->e3->f2 |= EDGEINNER;
+                               hold->e3->f2 |= EDGEINNER;
                        }
                }
        }
@@ -1720,7 +1720,7 @@ static void fill_tri_single(EditMesh *em, EditFace *efa, struct GHash *gh, int n
                hold = addfacelist(em, verts[i],verts[i+1],v[op],NULL,NULL,NULL);
                if(i+1 != vertsize-1) {
                        if(seltype == SUBDIV_SELECT_INNER) {
-                                hold->e2->f2 |= EDGEINNER;
+                               hold->e2->f2 |= EDGEINNER;
                        }
                }
                facecopy(em, efa,hold);
@@ -2369,7 +2369,7 @@ static void fill_quad_quadruple(EditMesh *em, EditFace *efa, struct GHash *gh, i
        }
        // Clean up our dynamic multi-dim array
        for(i=0;i<numcuts+2;i++) {
-          MEM_freeN(innerverts[i]);
+               MEM_freeN(innerverts[i]);
        }
        MEM_freeN(innerverts);
 }
index 9164dc7d4c837d19a64f6803ef8d44aa0e12db7f..46076d0bec4c1c19587c4d8c789fb8ede199d651 100644 (file)
@@ -282,7 +282,7 @@ int ED_mesh_color_remove(bContext *C, Object *ob, Mesh *me)
        CustomDataLayer *cdl;
        int index;
 
-        index= CustomData_get_active_layer_index(data, CD_MCOL);
+       index= CustomData_get_active_layer_index(data, CD_MCOL);
        cdl= (index == -1)? NULL: &data->layers[index];
 
        if(!cdl)
@@ -301,7 +301,7 @@ int ED_mesh_color_remove_named(bContext *C, Object *ob, Mesh *me, const char *na
        CustomDataLayer *cdl;
        int index;
 
-        index= CustomData_get_named_layer_index(data, CD_MCOL, name);
+       index= CustomData_get_named_layer_index(data, CD_MCOL, name);
        cdl= (index == -1)? NULL: &data->layers[index];
 
        if(!cdl)
index 4fbb5e0d51c5d8a155c2e898754edb0bf71d4575..88182a31056d229550e1f769c2eeaff16c8ff05e 100644 (file)
@@ -475,7 +475,7 @@ void ED_object_enter_editmode(bContext *C, int flag)
        else if(ob->type==OB_FONT) {
                scene->obedit= ob; // XXX for context
                ok= 1;
-                make_editText(ob);
+               make_editText(ob);
 
                WM_event_add_notifier(C, NC_SCENE|ND_MODE|NS_EDITMODE_TEXT, scene);
        }
@@ -536,9 +536,9 @@ static int editmode_toggle_poll(bContext *C)
                return 0;
 
        return (ob->type == OB_MESH || ob->type == OB_ARMATURE ||
-                         ob->type == OB_FONT || ob->type == OB_MBALL ||
-                         ob->type == OB_LATTICE || ob->type == OB_SURF ||
-                         ob->type == OB_CURVE);
+               ob->type == OB_FONT || ob->type == OB_MBALL ||
+               ob->type == OB_LATTICE || ob->type == OB_SURF ||
+               ob->type == OB_CURVE);
 }
 
 void OBJECT_OT_editmode_toggle(wmOperatorType *ot)
index 5bb1b634fe0ad2766a840ff4471a52bdb65dec04..2a827091fdeeb2140ccd68d949be38e6e42babb8 100644 (file)
@@ -465,8 +465,8 @@ static void add_hook_object(Main *bmain, Scene *scene, Object *obedit, Object *o
        
        invert_m4_m4(ob->imat, ob->obmat);
        /* apparently this call goes from right to left... */
-       mul_serie_m4(hmd->parentinv, ob->imat, obedit->obmat, NULL, 
-                                NULL, NULL, NULL, NULL, NULL);
+       mul_serie_m4(hmd->parentinv, ob->imat, obedit->obmat, NULL,
+                    NULL, NULL, NULL, NULL, NULL);
        
        DAG_scene_sort(bmain, scene);
 }
index d10a6be1988c9b84e3433b15c33627de9c6125e5..fce37b7a0229fbda024d736bbcc48d596358226a 100644 (file)
@@ -296,8 +296,8 @@ static int object_select_linked_exec(bContext *C, wmOperator *op)
                }
                else if(nr==5) {
                        if(base->object->dup_group==ob->dup_group) {
-                                base->flag |= SELECT;
-                                changed = 1;
+                               base->flag |= SELECT;
+                               changed = 1;
                        }
                }
                else if(nr==6) {
index 767001ff1637de654ec6e90f8683babc72dd1a55..0e65383861b02c92291709d170dade1e3908aa60 100644 (file)
@@ -423,15 +423,15 @@ static void paint_draw_alpha_overlay(Sculpt *sd, Brush *brush,
        /* save lots of GL state
           TODO: check on whether all of these are needed? */
        glPushAttrib(GL_COLOR_BUFFER_BIT|
-                    GL_CURRENT_BIT|
-                    GL_DEPTH_BUFFER_BIT|
-                    GL_ENABLE_BIT|
-                    GL_LINE_BIT|
-                    GL_POLYGON_BIT|
-                    GL_STENCIL_BUFFER_BIT|
-                    GL_TRANSFORM_BIT|
-                    GL_VIEWPORT_BIT|
-                    GL_TEXTURE_BIT);
+                    GL_CURRENT_BIT|
+                    GL_DEPTH_BUFFER_BIT|
+                    GL_ENABLE_BIT|
+                    GL_LINE_BIT|
+                    GL_POLYGON_BIT|
+                    GL_STENCIL_BUFFER_BIT|
+                    GL_TRANSFORM_BIT|
+                    GL_VIEWPORT_BIT|
+                    GL_TEXTURE_BIT);
 
        if(load_tex(sd, brush, vc)) {
                glEnable(GL_BLEND);
@@ -484,9 +484,9 @@ static void paint_draw_alpha_overlay(Sculpt *sd, Brush *brush,
 
                /* set quad color */
                glColor4f(U.sculpt_paint_overlay_col[0],
-                         U.sculpt_paint_overlay_col[1],
-                         U.sculpt_paint_overlay_col[2],
-                         brush->texture_overlay_alpha / 100.0f);
+                         U.sculpt_paint_overlay_col[1],
+                         U.sculpt_paint_overlay_col[2],
+                         brush->texture_overlay_alpha / 100.0f);
 
                /* draw textured quad */
                glBegin(GL_QUADS);
@@ -619,7 +619,7 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused))
                        visual_strength = 1;
 
                outline_alpha = ((paint->flags & PAINT_SHOW_BRUSH_ON_SURFACE) ?
-                                min_alpha + (visual_strength*(max_alpha-min_alpha)) : 0.50f);
+                                    min_alpha + (visual_strength*(max_alpha-min_alpha)) : 0.50f);
 
                if(sd->draw_anchored) {
                        final_radius = sd->anchored_size;
index ac2efcb2ec211742bbd0fc4ce62861e84419a49f..a63a925605587a37875fa1142c7e315962a2321e 100644 (file)
@@ -2450,7 +2450,7 @@ static void sculpt_combine_proxies(Sculpt *sd, Object *ob)
        if(!ELEM(brush->sculpt_tool, SCULPT_TOOL_SMOOTH, SCULPT_TOOL_LAYER)) {
                /* these brushes start from original coordinates */
                const int use_orco = (ELEM3(brush->sculpt_tool, SCULPT_TOOL_GRAB,
-                                 SCULPT_TOOL_ROTATE, SCULPT_TOOL_THUMB));
+                                           SCULPT_TOOL_ROTATE, SCULPT_TOOL_THUMB));
 
                #pragma omp parallel for schedule(guided) if (sd->flags & SCULPT_USE_OPENMP)
                for (n= 0; n < totnode; n++) {
@@ -2972,7 +2972,7 @@ static void sculpt_update_brush_delta(Sculpt *sd, Object *ob, Brush *brush)
 
                if(cache->first_time) {
                        copy_v3_v3(cache->orig_grab_location,
-                                  cache->true_location);
+                                  cache->true_location);
                }
                else if(tool == SCULPT_TOOL_SNAKE_HOOK)
                        add_v3_v3(cache->true_location, cache->grab_delta);
@@ -3246,7 +3246,7 @@ int sculpt_stroke_get_location(bContext *C, struct PaintStroke *stroke, float ou
        srd.hit = 0;
        srd.original = (cache)? cache->original: 0;
        BLI_pbvh_raycast(ss->pbvh, sculpt_raycast_cb, &srd,
-                        ray_start, ray_normal, srd.original);
+                        ray_start, ray_normal, srd.original);
        
        copy_v3_v3(out, ray_normal);
        mul_v3_fl(out, srd.dist);
@@ -3506,9 +3506,9 @@ static int sculpt_brush_stroke_invoke(bContext *C, wmOperator *op, wmEvent *even
                return OPERATOR_CANCELLED;
 
        stroke = paint_stroke_new(C, sculpt_stroke_get_location,
-                                 sculpt_stroke_test_start,
-                                 sculpt_stroke_update_step,
-                                 sculpt_stroke_done, event->type);
+                                 sculpt_stroke_test_start,
+                                 sculpt_stroke_update_step,
+                                 sculpt_stroke_done, event->type);
 
        op->customdata = stroke;
 
index d91282e768fae7ccd03a728320cd2745ea5fb017..41aae64445a292d5604e227c3237f4dc935472e3 100644 (file)
@@ -177,17 +177,17 @@ void file_draw_buttons(const bContext *C, ARegion *ar)
                uiBlockSetFunc(block, file_draw_check_cb, NULL, NULL);
 
                but = uiDefButTextO(block, TEX, "FILE_OT_directory", 0, "",
-                                min_x, line1_y, line1_w-chan_offs, btn_h, 
-                                params->dir, 0.0, (float)FILE_MAX, 0, 0,
-                                TIP_("File path"));
+                                   min_x, line1_y, line1_w-chan_offs, btn_h,
+                                   params->dir, 0.0, (float)FILE_MAX, 0, 0,
+                                   TIP_("File path"));
                uiButSetCompleteFunc(but, autocomplete_directory, NULL);
                uiButSetFlag(but, UI_BUT_NO_UTF8);
 
                if((params->flag & FILE_DIRSEL_ONLY) == 0) {
                        but = uiDefBut(block, TEX, B_FS_FILENAME, "",
-                                        min_x, line2_y, line2_w-chan_offs, btn_h,
-                                        params->file, 0.0, (float)FILE_MAXFILE, 0, 0,
-                                        TIP_(overwrite_alert ?N_("File name, overwrite existing") : N_("File name")));
+                                      min_x, line2_y, line2_w-chan_offs, btn_h,
+                                      params->file, 0.0, (float)FILE_MAXFILE, 0, 0,
+                                      TIP_(overwrite_alert ?N_("File name, overwrite existing") : N_("File name")));
                        uiButSetCompleteFunc(but, autocomplete_file, NULL);
                        uiButSetFlag(but, UI_BUT_NO_UTF8);
 
@@ -205,16 +205,16 @@ void file_draw_buttons(const bContext *C, ARegion *ar)
        if (fnumbuttons && (params->flag & FILE_DIRSEL_ONLY) == 0) {
                uiBlockBeginAlign(block);
                but = uiDefIconButO(block, BUT, "FILE_OT_filenum", 0, ICON_ZOOMOUT,
-                               min_x + line2_w + separator - chan_offs, line2_y,
-                               btn_fn_w, btn_h,
-                               TIP_("Decrement the filename number"));
-               RNA_int_set(uiButGetOperatorPtrRNA(but), "increment", -1); 
-       
+                                   min_x + line2_w + separator - chan_offs, line2_y,
+                                   btn_fn_w, btn_h,
+                                   TIP_("Decrement the filename number"));
+               RNA_int_set(uiButGetOperatorPtrRNA(but), "increment", -1);
+
                but = uiDefIconButO(block, BUT, "FILE_OT_filenum", 0, ICON_ZOOMIN,
-                               min_x + line2_w + separator + btn_fn_w - chan_offs, line2_y,
-                               btn_fn_w, btn_h,
-                               TIP_("Increment the filename number"));
-               RNA_int_set(uiButGetOperatorPtrRNA(but), "increment", 1); 
+                                   min_x + line2_w + separator + btn_fn_w - chan_offs, line2_y,
+                                   btn_fn_w, btn_h,
+                                   TIP_("Increment the filename number"));
+               RNA_int_set(uiButGetOperatorPtrRNA(but), "increment", 1);
                uiBlockEndAlign(block);
        }
        
@@ -235,7 +235,7 @@ void file_draw_buttons(const bContext *C, ARegion *ar)
 
 
 static void draw_tile(int sx, int sy, int width, int height, int colorid, int shade)
-{      
+{
        UI_ThemeColorShade(colorid, shade);
        uiSetRoundBox(UI_CNR_ALL);
        uiRoundBox((float)sx, (float)(sy - height), (float)(sx + width), (float)sy, 5.0f);
index c36cb1bf00e3aad6fc5353c9916b99be780729c8..2f69fc5f99f67caf3646da5d8e464584da55427b 100644 (file)
@@ -2335,7 +2335,7 @@ static short draw_actuatorbuttons(Main *bmain, Object *ob, bActuator *act, uiBlo
                str= "Edit Object %t|Add Object %x0|End Object %x1|Replace Mesh %x2|Track to %x3|Dynamics %x4";
                uiDefButS(block, MENU, B_REDR, str,             xco+40, yco-24, (width-80), 19, &eoa->type, 0.0, 0.0, 0, 0, "");
 
-                yco-= ysize;
+               yco-= ysize;
 
                break;
 
@@ -2472,9 +2472,9 @@ static short draw_actuatorbuttons(Main *bmain, Object *ob, bActuator *act, uiBlo
                }
                str= "Constraint Type %t|Location %x0|Distance %x1|Orientation %x2|Force field %x3";
                but = uiDefButS(block, MENU, B_REDR, str,               xco+40, yco-23, (width-80), 19, &coa->type, 0.0, 0.0, 0, 0, "");
-                yco-= ysize;
+               yco-= ysize;
                break;
+
        case ACT_SCENE:
                sca= act->data;
                
index 4394b4b19205459433f286b89f390e2905aac5b9..e2e47338eee9ac8463de7c8ebf8559ed194df0cb 100644 (file)
@@ -340,8 +340,9 @@ static void node_buts_normal(uiLayout *layout, bContext *UNUSED(C), PointerRNA *
        uiBut *bt;
        
        bt= uiDefButF(block, BUT_NORMAL, B_NODE_EXEC, "", 
-                         (short)butr->xmin, (short)butr->xmin, butr->xmax-butr->xmin, butr->xmax-butr->xmin, 
-                         nor, 0.0f, 1.0f, 0, 0, "");
+                     (short)butr->xmin, (short)butr->xmin,
+                     butr->xmax-butr->xmin, butr->xmax-butr->xmin,
+                     nor, 0.0f, 1.0f, 0, 0, "");
        uiButSetFunc(bt, node_normal_cb, ntree, node);
 }
 #if 0 // not used in 2.5x yet
@@ -627,9 +628,9 @@ static void draw_group_socket_name(SpaceNode *snode, bNode *gnode, bNodeSocket *
                        uiButSetFunc(bt, update_group_output_cb, snode, ngroup);
        }
        else {
-               uiDefBut(gnode->block, LABEL, 0, sock->name, 
-                                sock->locx+xoffset, sock->locy+1+yoffset, 72, NODE_DY,
-                                NULL, 0, 31, 0, 0, "");
+               uiDefBut(gnode->block, LABEL, 0, sock->name,
+                        sock->locx+xoffset, sock->locy+1+yoffset, 72, NODE_DY,
+                        NULL, 0, 31, 0, 0, "");
        }
 }
 
index a932f1b10d98ffd32109e7e19a9763196ba3ca96..36cba15e5f27fdbd031515354ca1abd3649faa24 100644 (file)
@@ -585,8 +585,8 @@ static void node_draw_basis(const bContext *C, ARegion *ar, SpaceNode *snode, bN
                UI_ThemeColor(color_id);
        
        if(node->flag & NODE_MUTED)
-          UI_ThemeColorBlend(color_id, TH_REDALERT, 0.5f);
-               
+               UI_ThemeColorBlend(color_id, TH_REDALERT, 0.5f);
+
        uiSetRoundBox(UI_CNR_TOP_LEFT | UI_CNR_TOP_RIGHT);
        uiRoundBox(rct->xmin, rct->ymax-NODE_DY, rct->xmax, rct->ymax, BASIS_RAD);
        
@@ -758,7 +758,7 @@ static void node_draw_hidden(const bContext *C, ARegion *ar, SpaceNode *snode, b
        /* body */
        UI_ThemeColor(color_id);
        if(node->flag & NODE_MUTED)
-          UI_ThemeColorBlend(color_id, TH_REDALERT, 0.5f);     
+               UI_ThemeColorBlend(color_id, TH_REDALERT, 0.5f);
        uiRoundBox(rct->xmin, rct->ymin, rct->xmax, rct->ymax, hiddenrad);
        
        /* outline active and selected emphasis */
index 8575d0348ab0200f94606a529ff599c8abb79eed..5fd3d3b45d69d01e46b26b541d503e44bc589ac9 100644 (file)
@@ -170,7 +170,7 @@ static void proxy_startjob(void *pjv, short *stop, short *do_update, float *prog
                BLI_mutex_unlock(&pj->queue_lock);
 
                seq_proxy_rebuild(pj->main, pj->scene, seq, 
-                                 stop, do_update, progress);
+                                 stop, do_update, progress);
                seq_free_sequence_recurse(pj->scene, seq);
        }
 
@@ -195,7 +195,7 @@ static void seq_proxy_build_job(const bContext *C, Sequence * seq)
        seq = seq_dupli_recursive(scene, scene, seq, 0);
 
        steve = WM_jobs_get(CTX_wm_manager(C), CTX_wm_window(C), 
-                           sa, "Building Proxies", WM_JOB_PROGRESS);
+                           sa, "Building Proxies", WM_JOB_PROGRESS);
 
        pj = WM_jobs_get_customdata(steve);
 
@@ -209,9 +209,9 @@ static void seq_proxy_build_job(const bContext *C, Sequence * seq)
 
                WM_jobs_customdata(steve, pj, proxy_freejob);
                WM_jobs_timer(steve, 0.1, NC_SCENE|ND_SEQUENCER,
-                             NC_SCENE|ND_SEQUENCER);
-               WM_jobs_callbacks(steve, proxy_startjob, NULL, NULL, 
-                                 proxy_endjob);
+                             NC_SCENE|ND_SEQUENCER);
+               WM_jobs_callbacks(steve, proxy_startjob, NULL, NULL,
+                                 proxy_endjob);
        }
 
        BLI_mutex_lock(&pj->queue_lock);
@@ -250,9 +250,9 @@ static void UNUSED_FUNCTION(change_plugin_seq)(Scene *scene, char *str) /* calle
        sh.free(last_seq);
        sh.init_plugin(last_seq, str);
 
-       last_seq->machine = MAX3(last_seq->seq1->machine, 
-                                last_seq->seq2->machine, 
-                                last_seq->seq3->machine);
+       last_seq->machine = MAX3(last_seq->seq1->machine,
+                                last_seq->seq2->machine,
+                                last_seq->seq3->machine);
 
        if( seq_test_overlap(ed->seqbasep, last_seq) ) shuffle_seq(ed->seqbasep, last_seq, scene);
        
index 720081d946b7e8d52b6a5d48c0169b819431c2eb..07ca56cde8b4941221ce385b534e35562fd6e0e8 100644 (file)
@@ -184,7 +184,7 @@ void sequencer_keymap(wmKeyConfig *keyconf)
           regular number keys */
        {
                int keys[] = { ONEKEY, TWOKEY, THREEKEY, FOURKEY, FIVEKEY,
-                              SIXKEY, SEVENKEY, EIGHTKEY, NINEKEY, ZEROKEY };
+                              SIXKEY, SEVENKEY, EIGHTKEY, NINEKEY, ZEROKEY };
                int i;
 
                for (i = 1; i <= 10; i++) {
index 565d531975b44715aa627dccaae98047341264cf..62cd4fedf0e6912d6182dd943b1bb7c2c69d6e8c 100644 (file)
@@ -105,7 +105,7 @@ int text_get_total_lines(struct SpaceText *st, struct ARegion *ar);
 
 /* text_ops.c */
 enum { LINE_BEGIN, LINE_END, FILE_TOP, FILE_BOTTOM, PREV_CHAR, NEXT_CHAR,
-          PREV_WORD, NEXT_WORD, PREV_LINE, NEXT_LINE, PREV_PAGE, NEXT_PAGE };
+       PREV_WORD, NEXT_WORD, PREV_LINE, NEXT_LINE, PREV_PAGE, NEXT_PAGE };
 enum { DEL_NEXT_CHAR, DEL_PREV_CHAR, DEL_NEXT_WORD, DEL_PREV_WORD };
 
 void TEXT_OT_new(struct wmOperatorType *ot);
index 8e20f331698930b752b5daa4eff2ffbf3574c667..edcaed43de6653f68dc8a4d0b25072cd6ca1e485 100644 (file)
@@ -448,7 +448,7 @@ static void drawfloor(Scene *scene, View3D *v3d, const char **grid_unit)
                if(usys) {
                        int i= bUnit_GetBaseUnit(usys);
                        *grid_unit= bUnit_GetNameDisplay(usys, i);
-                        grid_scale = (grid_scale * (float)bUnit_GetScaler(usys, i)) / scene->unit.scale_length;
+                       grid_scale = (grid_scale * (float)bUnit_GetScaler(usys, i)) / scene->unit.scale_length;
                }
        }
 
@@ -1267,11 +1267,24 @@ static void backdrawview3d(Scene *scene, ARegion *ar, View3D *v3d)
        BLI_assert(ar->regiontype == RGN_TYPE_WINDOW);
 
        if(base && (base->object->mode & (OB_MODE_VERTEX_PAINT|OB_MODE_WEIGHT_PAINT) ||
-                        paint_facesel_test(base->object)));
+                   paint_facesel_test(base->object)))
+       {
+               /* do nothing */
+       }
        else if((base && (base->object->mode & OB_MODE_TEXTURE_PAINT)) &&
-               scene->toolsettings && (scene->toolsettings->imapaint.flag & IMAGEPAINT_PROJECT_DISABLE));
-       else if((base && (base->object->mode & OB_MODE_PARTICLE_EDIT)) && v3d->drawtype>OB_WIRE && (v3d->flag & V3D_ZBUF_SELECT));
-       else if(scene->obedit && v3d->drawtype>OB_WIRE && (v3d->flag & V3D_ZBUF_SELECT));
+               scene->toolsettings && (scene->toolsettings->imapaint.flag & IMAGEPAINT_PROJECT_DISABLE))
+       {
+               /* do nothing */
+       }
+       else if((base && (base->object->mode & OB_MODE_PARTICLE_EDIT)) &&
+               v3d->drawtype > OB_WIRE && (v3d->flag & V3D_ZBUF_SELECT))
+       {
+               /* do nothing */
+       }
+       else if(scene->obedit && v3d->drawtype>OB_WIRE &&
+               (v3d->flag & V3D_ZBUF_SELECT)) {
+               /* do nothing */
+       }
        else {
                v3d->flag &= ~V3D_INVALID_BACKBUF;
                return;
index 7cd9c07c00ca68cb82ec1a5ebe3b823aca04f6c7..b2707db806fec07653f902149a81d62f42167b1f 100644 (file)
@@ -977,7 +977,7 @@ void VIEW3D_OT_snap_cursor_to_center(wmOperatorType *ot)
        ot->poll= ED_operator_view3d_active;
        
        /* flags */
-          ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
+       ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
 }
 
 /* **************************************************** */
index 7ab1b24e9b3911937e39b5e9c61f35e8dd4afcb8..e19c115b19491d29fe839e10a5297c6fa2cfb65f 100644 (file)
@@ -1256,7 +1256,7 @@ static void createTransArmatureVerts(TransInfo *t)
 static void createTransMBallVerts(TransInfo *t)
 {
        MetaBall *mb = (MetaBall*)t->obedit->data;
-        MetaElem *ml;
+       MetaElem *ml;
        TransData *td;
        TransDataExtension *tx;
        float mtx[3][3], smtx[3][3];
index 5d61d2a1ebb434f089819110ad251ef285b641a9..442ad662813d90eb26273801910e032e055a70da 100644 (file)
@@ -792,7 +792,7 @@ int getTransformOrientation(const bContext *C, float normal[3], float plane[3],
                                float mat[4][4];
 
                                /* Rotation of MetaElem is stored in quat */
-                                quat_to_mat4( mat,ml_sel->quat);
+                               quat_to_mat4( mat,ml_sel->quat);
 
                                copy_v3_v3(normal, mat[2]);
 
index 22cae058b2aeecbfe12808380623f2532d89fc63..8d72bd64e29bcea369b59301a142829413d9e564 100644 (file)
@@ -468,11 +468,11 @@ void GPU_drawobject_free(DerivedMesh *dm)
 }
 
 typedef void (*GPUBufferCopyFunc)(DerivedMesh *dm, float *varray, int *index,
-                                 int *mat_orig_to_new, void *user_data);
+                                  int *mat_orig_to_new, void *user_data);
 
 static GPUBuffer *gpu_buffer_setup(DerivedMesh *dm, GPUDrawObject *object,
-                                  int vector_size, int size, GLenum target,
-                                  void *user, GPUBufferCopyFunc copy_f)
+                                   int vector_size, int size, GLenum target,
+                                   void *user, GPUBufferCopyFunc copy_f)
 {
        GPUBufferPool *pool;
        GPUBuffer *buffer;
@@ -546,8 +546,8 @@ static GPUBuffer *gpu_buffer_setup(DerivedMesh *dm, GPUDrawObject *object,
                        while(uploaded == GL_FALSE) {
                                (*copy_f)(dm, varray, cur_index_per_mat, mat_orig_to_new, user);
                                /* glUnmapBuffer returns GL_FALSE if
-                                  the data store is corrupted; retry
-                                  in that case */
+                                * the data store is corrupted; retry
+                                * in that case */
                                uploaded = glUnmapBufferARB(target);
                        }
                }
@@ -924,8 +924,8 @@ static GPUBuffer *gpu_buffer_setup_type(DerivedMesh *dm, GPUBufferType type)
        }
 
        buf = gpu_buffer_setup(dm, dm->drawObject, ts->vector_size,
-                              gpu_buffer_size_from_type(dm, type),
-                              ts->gl_buffer_type, user_data, ts->copy);
+                              gpu_buffer_size_from_type(dm, type),
+                              ts->gl_buffer_type, user_data, ts->copy);
 
        return buf;
 }
@@ -1144,8 +1144,8 @@ void GPU_buffer_unbind(void)
                }
        }
        GLStates &= !(GPU_BUFFER_VERTEX_STATE | GPU_BUFFER_NORMAL_STATE |
-                     GPU_BUFFER_TEXCOORD_STATE | GPU_BUFFER_COLOR_STATE |
-                     GPU_BUFFER_ELEMENT_STATE);
+                     GPU_BUFFER_TEXCOORD_STATE | GPU_BUFFER_COLOR_STATE |
+                     GPU_BUFFER_ELEMENT_STATE);
 
        for(i = 0; i < MAX_GPU_ATTRIB_DATA; i++) {
                if(attribData[i].index != -1) {
@@ -1310,8 +1310,8 @@ void GPU_update_mesh_buffers(GPU_Buffers *buffers_v, MVert *mvert,
                /* Build VBO */
                glBindBufferARB(GL_ARRAY_BUFFER_ARB, buffers->vert_buf);
                glBufferDataARB(GL_ARRAY_BUFFER_ARB,
-                                sizeof(VertexBufferFormat) * totvert,
-                                NULL, GL_STATIC_DRAW_ARB);
+                               sizeof(VertexBufferFormat) * totvert,
+                               NULL, GL_STATIC_DRAW_ARB);
                vert_data = glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB);
 
                if(vert_data) {
@@ -1359,7 +1359,7 @@ GPU_Buffers *GPU_build_mesh_buffers(GHash *map, MVert *mvert, MFace *mface,
                /* Generate index buffer object */
                glBindBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, buffers->index_buf);
                glBufferDataARB(GL_ELEMENT_ARRAY_BUFFER_ARB,
-                                sizeof(unsigned short) * tottri * 3, NULL, GL_STATIC_DRAW_ARB);
+                               sizeof(unsigned short) * tottri * 3, NULL, GL_STATIC_DRAW_ARB);
 
                /* Fill the triangle buffer */
                tri_data = glMapBufferARB(GL_ELEMENT_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB);
@@ -1429,8 +1429,8 @@ void GPU_update_grid_buffers(GPU_Buffers *buffers_v, DMGridData **grids,
        if(buffers->vert_buf) {
                glBindBufferARB(GL_ARRAY_BUFFER_ARB, buffers->vert_buf);
                glBufferDataARB(GL_ARRAY_BUFFER_ARB,
-                                sizeof(DMGridData) * totvert,
-                                NULL, GL_STATIC_DRAW_ARB);
+                               sizeof(DMGridData) * totvert,
+                               NULL, GL_STATIC_DRAW_ARB);
                vert_data = glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_WRITE_ONLY_ARB);
                if(vert_data) {
                        for(i = 0; i < totgrid; ++i) {
index 78f5eb52d5201ed44d919042144ec4702e590bfb..35ef48250ccf5434f9d1f9b97e7205c169e60a09 100644 (file)
@@ -909,7 +909,7 @@ static void gpu_node_input_socket(GPUNode *node, GPUNodeStack *sock)
                gpu_node_input_link(node, sock->link, sock->type);
        }
        else {
-                link = GPU_node_link_create(0);
+               link = GPU_node_link_create(0);
                link->ptr1 = sock->vec;
                gpu_node_input_link(node, link, sock->type);
        }
index 3981e9fac02b26b4d9d962c5faa245c2b8e00531..05b980cd88c45841e79b3afc3f861154d8924e92 100644 (file)
@@ -596,7 +596,7 @@ static void gpu_verify_repeat(Image *ima)
 {
        /* set either clamp or repeat in X/Y */
        if (ima->tpageflag & IMA_CLAMP_U)
-          glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
+               glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
        else
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
 
@@ -809,11 +809,11 @@ void GPU_free_smoke(SmokeModifierData *smd)
        if(smd->type & MOD_SMOKE_TYPE_DOMAIN && smd->domain)
        {
                if(smd->domain->tex)
-                        GPU_texture_free(smd->domain->tex);
+                       GPU_texture_free(smd->domain->tex);
                smd->domain->tex = NULL;
 
                if(smd->domain->tex_shadow)
-                        GPU_texture_free(smd->domain->tex_shadow);
+                       GPU_texture_free(smd->domain->tex_shadow);
                smd->domain->tex_shadow = NULL;
        }
 }
index e1a89daf7e202426e7e9cd52b06c1988483b7491..184eac9519e4168b3e09cf3a53d5bb1633dffb25 100644 (file)
@@ -1208,7 +1208,7 @@ GPUPixelBuffer *gpu_pixelbuffer_create(int x, int y, int halffloat, int numbuffe
        pb->numbuffers = numbuffers;
        pb->halffloat = halffloat;
 
-          glGenBuffersARB(pb->numbuffers, pb->bindcode);
+       glGenBuffersARB(pb->numbuffers, pb->bindcode);
 
        if (!pb->bindcode[0]) {
                fprintf(stderr, "GPUPixelBuffer allocation failed\n");
index 3ab199625a48a6752765d0a061f641be57119736..3586e8f1b5ef6eec9c40a89d503022a9117c3a3b 100644 (file)
@@ -214,14 +214,14 @@ typedef enum IMB_Proxy_Size {
 void IMB_anim_set_index_dir(struct anim * anim, const char * dir);
 
 int IMB_anim_index_get_frame_index(struct anim * anim, IMB_Timecode_Type tc,
-                                  int position);
+                                   int position);
 
 /* will rebuild all used indices and proxies at once */
 void IMB_anim_index_rebuild(struct anim * anim, 
-                           IMB_Timecode_Type build_tcs,
-                           IMB_Proxy_Size build_preview_sizes, 
-                           int build_quality,
-                           short *stop, short *do_update, float *progress);
+                            IMB_Timecode_Type build_tcs,
+                            IMB_Proxy_Size build_preview_sizes,
+                            int build_quality,
+                            short *stop, short *do_update, float *progress);
 
 /**
  * Return the length (in frames) of the given @a anim.
@@ -234,7 +234,7 @@ int IMB_anim_get_duration(struct anim *anim, IMB_Timecode_Type tc);
  * and frs_sec and frs_sec_base untouched if none available!)
  */
 int IMB_anim_get_fps(struct anim * anim, 
-                    short * frs_sec, float * frs_sec_base);
+                     short * frs_sec, float * frs_sec_base);
 
 /**
  *
index 5c76f33a3190e86f1d8954feae930ebbc6f0edcb..9ce587aa98344a53bc33fe7089dc9598f0af542a 100644 (file)
@@ -78,24 +78,26 @@ typedef struct anim_index_builder {
        void * private_data;
 
        void (*delete_priv_data)(struct anim_index_builder * idx);
-       void (*proc_frame)(struct anim_index_builder * idx, 
-                          unsigned char * buffer,
-                          int data_size, 
-                          struct anim_index_entry * entry);
+       void (*proc_frame)(struct anim_index_builder * idx,
+                          unsigned char * buffer,
+                          int data_size,
+                          struct anim_index_entry * entry);
 } anim_index_builder;
 
 anim_index_builder * IMB_index_builder_create(const char * name);
-void IMB_index_builder_add_entry(anim_index_builder * fp, 
-                                int frameno, unsigned long long seek_pos,
-                                unsigned long long seek_pos_dts,
-                                unsigned long long pts);
-
-void IMB_index_builder_proc_frame(anim_index_builder * fp, 
-                                 unsigned char * buffer,
-                                 int data_size,
-                                 int frameno, unsigned long long seek_pos,
-                                 unsigned long long seek_pos_dts,
-                                 unsigned long long pts);
+void IMB_index_builder_add_entry(
+        anim_index_builder * fp,
+        int frameno, unsigned long long seek_pos,
+        unsigned long long seek_pos_dts,
+        unsigned long long pts);
+
+void IMB_index_builder_proc_frame(
+        anim_index_builder * fp,
+        unsigned char * buffer,
+        int data_size,
+        int frameno, unsigned long long seek_pos,
+        unsigned long long seek_pos_dts,
+        unsigned long long pts);
 
 void IMB_index_builder_finish(anim_index_builder * fp, int rollback);
 
@@ -111,7 +113,7 @@ unsigned long long IMB_indexer_get_pts(struct anim_index * idx,
 int IMB_indexer_get_duration(struct anim_index * idx);
 
 int IMB_indexer_can_scan(struct anim_index * idx, 
-                        int old_frame_index, int new_frame_index);
+                         int old_frame_index, int new_frame_index);
 
 void IMB_indexer_close(struct anim_index * idx);
 
index 09b79e5164838337c2de91ac240fdeaf51a457f8..fb6c85c24087dc3e044554462e6baa20b187da40 100644 (file)
@@ -530,12 +530,12 @@ static int startffmpeg(struct anim * anim) {
        }
 
        if (anim->ib_flags & IB_animdeinterlace) {
-               avpicture_fill((AVPicture*) anim->pFrameDeinterlaced, 
-                                  MEM_callocN(avpicture_get_size(
-                                                  anim->pCodecCtx->pix_fmt,
-                                                  anim->x, anim->y), 
-                                          "ffmpeg deinterlace"), 
-                                  anim->pCodecCtx->pix_fmt, anim->x, anim->y);
+               avpicture_fill((AVPicture*) anim->pFrameDeinterlaced,
+                              MEM_callocN(avpicture_get_size(
+                                              anim->pCodecCtx->pix_fmt,
+                                              anim->x, anim->y),
+                                          "ffmpeg deinterlace"),
+                              anim->pCodecCtx->pix_fmt, anim->x, anim->y);
        }
 
        if (pCodecCtx->has_b_frames) {
@@ -627,9 +627,9 @@ static void ffmpeg_postprocess(struct anim * anim)
                }
        }
        
-       avpicture_fill((AVPicture*) anim->pFrameRGB, 
-                      (unsigned char*) ibuf->rect, 
-                      PIX_FMT_RGBA, anim->x, anim->y);
+       avpicture_fill((AVPicture*) anim->pFrameRGB,
+                      (unsigned char*) ibuf->rect,
+                      PIX_FMT_RGBA, anim->x, anim->y);
 
        if (ENDIAN_ORDER == B_ENDIAN) {
                int * dstStride   = anim->pFrameRGB->linesize;
@@ -641,12 +641,12 @@ static void ffmpeg_postprocess(struct anim * anim)
                unsigned char* top;
                
                sws_scale(anim->img_convert_ctx,
-                         (const uint8_t * const *)input->data,
-                         input->linesize,
-                         0,
-                         anim->pCodecCtx->height,
-                         dst2,
-                         dstStride2);
+                         (const uint8_t * const *)input->data,
+                         input->linesize,
+                         0,
+                         anim->pCodecCtx->height,
+                         dst2,
+                         dstStride2);
                
                /* workaround: sws_scale bug
                   sets alpha = 0 and compensate
@@ -691,12 +691,12 @@ static void ffmpeg_postprocess(struct anim * anim)
                unsigned char* r;
                
                sws_scale(anim->img_convert_ctx,
-                         (const uint8_t * const *)input->data,
-                         input->linesize,
-                         0,
-                         anim->pCodecCtx->height,
-                         dst2,
-                         dstStride2);
+                         (const uint8_t * const *)input->data,
+                         input->linesize,
+                         0,
+                         anim->pCodecCtx->height,
+                         dst2,
+                         dstStride2);
                
                r = (unsigned char*) ibuf->rect;
                
@@ -1024,10 +1024,10 @@ static ImBuf * ffmpeg_fetchibuf(struct anim * anim, int position,
                }
 
                if (ret < 0) {
-                       av_log(anim->pFormatCtx, AV_LOG_ERROR, 
+                       av_log(anim->pFormatCtx, AV_LOG_ERROR,
                               "FETCH: "
                               "error while seeking to DTS = %lld "
-                              "(frameno = %d, PTS = %lld): errcode = %d\n", 
+                              "(frameno = %d, PTS = %lld): errcode = %d\n",
                               pos, position, (long long int)pts_to_search, ret);
                }
 
@@ -1125,7 +1125,7 @@ static ImBuf * redcode_fetchibuf(struct anim * anim, int position) {
        }
        
                ibuf = IMB_allocImBuf(raw_frame->width * 2, 
-                                 raw_frame->height * 2, 32, IB_rectfloat);
+                                     raw_frame->height * 2, 32, IB_rectfloat);
 
        redcode_decode_video_float(raw_frame, ibuf->rect_float, 1);
 
index 3a94c79f48d5fda889fd4da2debbec23c5a83a09..9993df61089b8e34eff631b023c0b4fdcdfbff73 100644 (file)
@@ -48,12 +48,12 @@ static char magic[] = "BlenMIdx";
 static char temp_ext [] = "_part";
 
 static int proxy_sizes[] = { IMB_PROXY_25, IMB_PROXY_50, IMB_PROXY_75,
-                            IMB_PROXY_100 };
+                             IMB_PROXY_100 };
 static float proxy_fac[] = { 0.25, 0.50, 0.75, 1.00 };
 
 #ifdef WITH_FFMPEG
 static int tc_types[] = { IMB_TC_RECORD_RUN, IMB_TC_FREE_RUN,
-                         IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN };
+                          IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN };
 #endif
 
 #define INDEX_FILE_VERSION 1
@@ -73,9 +73,9 @@ extern void IMB_indexer_dv_new(anim_index_builder * idx);
 anim_index_builder * IMB_index_builder_create(const char * name)
 {
 
-       anim_index_builder * rv 
-               = MEM_callocN( sizeof(struct anim_index_builder), 
-                              "index builder");
+       anim_index_builder * rv
+               = MEM_callocN( sizeof(struct anim_index_builder),
+                              "index builder");
 
        fprintf(stderr, "Starting work on index: %s\n", name);
 
@@ -197,13 +197,13 @@ struct anim_index * IMB_indexer_open(const char * name)
                                    * idx->num_entries, "anim_index_entries");
 
        for (i = 0; i < idx->num_entries; i++) {
-               fread(&idx->entries[i].frameno, 
+               fread(&idx->entries[i].frameno,
                      sizeof(int), 1, fp);
-               fread(&idx->entries[i].seek_pos, 
+               fread(&idx->entries[i].seek_pos,
                      sizeof(unsigned long long), 1, fp);
-               fread(&idx->entries[i].seek_pos_dts, 
+               fread(&idx->entries[i].seek_pos_dts,
                      sizeof(unsigned long long), 1, fp);
-               fread(&idx->entries[i].pts, 
+               fread(&idx->entries[i].pts,
                      sizeof(unsigned long long), 1, fp);
        }
 
@@ -392,7 +392,7 @@ static void get_proxy_filename(struct anim * anim, IMB_Proxy_Size preview_size,
        get_index_dir(anim, index_dir);
 
        BLI_join_dirfile(fname, FILE_MAXFILE + FILE_MAXDIR, index_dir, 
-                        temp ? proxy_temp_name : proxy_name);
+                        temp ? proxy_temp_name : proxy_name);
 }
 
 static void get_tc_filename(struct anim * anim, IMB_Timecode_Type tc,
@@ -418,7 +418,7 @@ static void get_tc_filename(struct anim * anim, IMB_Timecode_Type tc,
        get_index_dir(anim, index_dir);
        
        BLI_join_dirfile(fname, FILE_MAXFILE + FILE_MAXDIR, 
-                        index_dir, index_name);
+                        index_dir, index_name);
 }
 
 /* ----------------------------------------------------------------------
@@ -533,15 +533,16 @@ static struct proxy_output_ctx * alloc_proxy_output_ffmpeg(
 
        rv->orig_height = st->codec->height;
 
-       if (st->codec->width != width || st->codec->height != height
-           || st->codec->pix_fmt != rv->c->pix_fmt) {
+       if (st->codec->width != width || st->codec->height != height ||
+               st->codec->pix_fmt != rv->c->pix_fmt)
+       {
                rv->frame = avcodec_alloc_frame();
-               avpicture_fill((AVPicture*) rv->frame, 
-                              MEM_mallocN(avpicture_get_size(
-                                                  rv->c->pix_fmt, 
-                                                  round_up(width, 16), height),
-                                          "alloc proxy output frame"),
-                              rv->c->pix_fmt, round_up(width, 16), height);
+               avpicture_fill((AVPicture*) rv->frame,
+                              MEM_mallocN(avpicture_get_size(
+                                              rv->c->pix_fmt,
+                                              round_up(width, 16), height),
+                                          "alloc proxy output frame"),
+                              rv->c->pix_fmt, round_up(width, 16), height);
 
                rv->sws_ctx = sws_getContext(
                        st->codec->width,
@@ -567,12 +568,13 @@ static int add_to_proxy_output_ffmpeg(
                return 0;
        }
 
-       if (ctx->sws_ctx && frame && 
-           (frame->data[0] || frame->data[1] ||
-            frame->data[2] || frame->data[3])) {
+       if (    ctx->sws_ctx && frame &&
+               (frame->data[0] || frame->data[1] ||
+                frame->data[2] || frame->data[3]))
+       {
                sws_scale(ctx->sws_ctx, (const uint8_t * const*) frame->data,
-                         frame->linesize, 0, ctx->orig_height, 
-                         ctx->frame->data, ctx->frame->linesize);
+                         frame->linesize, 0, ctx->orig_height,
+                         ctx->frame->data, ctx->frame->linesize);
        }
 
        frame = ctx->sws_ctx ? (frame ? ctx->frame : 0) : frame;
@@ -664,13 +666,13 @@ static void free_proxy_output_ffmpeg(struct proxy_output_ctx * ctx,
        }
 
        get_proxy_filename(ctx->anim, ctx->proxy_size, 
-                          fname_tmp, TRUE);
+                          fname_tmp, TRUE);
 
        if (rollback) {
                unlink(fname_tmp);
        } else {
                get_proxy_filename(ctx->anim, ctx->proxy_size, 
-                                  fname, FALSE);
+                                  fname, FALSE);
                rename(fname_tmp, fname);
        }
        
index d9bd0b9cda4fdaaee4de6fcd8e8eba4e704a3162..89038d7d1d270f70a2b7635bf1895becc92a2a61 100644 (file)
@@ -219,14 +219,13 @@ static void memory_source(j_decompress_ptr cinfo, unsigned char *buffer, size_t
  * Note we do *not* do INPUT_SYNC before calling fill_input_buffer,
  * but we must reload the local copies after a successful fill.
  */
-#define MAKE_BYTE_AVAIL(cinfo,action)  \
-       if (bytes_in_buffer == 0) {  \
-         if (! (*datasrc->fill_input_buffer) (cinfo))  \
-           { action; }  \
-         INPUT_RELOAD(cinfo);  \
+#define MAKE_BYTE_AVAIL(cinfo, action)                                        \
+       if (bytes_in_buffer == 0) {                                               \
+               if (! (*datasrc->fill_input_buffer) (cinfo))                          \
+                       { action; }                                                       \
+               INPUT_RELOAD(cinfo);  \
        }
 
-       
 
 /* Read a byte into variable V.
  * If must suspend, take the specified action (typically "return FALSE").
index 13c381ae9c4db990d3a3ad99cb7c9a2630b2b39d..be245baef21670a756a267c5c5e2a8386ef6028b 100644 (file)
@@ -190,10 +190,11 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags)
                ibuf->encodedsize = 0;
 
                png_set_write_fn(png_ptr,
-                        (png_voidp) ibuf,
-                        WriteData,
-                        Flush);
-       } else {
+                                (png_voidp) ibuf,
+                                WriteData,
+                                Flush);
+       }
+       else {
                fp = fopen(name, "wb");
                if (!fp) {
                        png_destroy_write_struct(&png_ptr, &info_ptr);
@@ -218,14 +219,14 @@ int imb_savepng(struct ImBuf *ibuf, const char *name, int flags)
 
        // png image settings
        png_set_IHDR(png_ptr,
-                info_ptr,
-                ibuf->x,
-                ibuf->y,
-                8,
-                color_type,
-                PNG_INTERLACE_NONE,
-                PNG_COMPRESSION_TYPE_DEFAULT,
-                PNG_FILTER_TYPE_DEFAULT);
+                    info_ptr,
+                    ibuf->x,
+                    ibuf->y,
+                    8,
+                    color_type,
+                    PNG_INTERLACE_NONE,
+                    PNG_COMPRESSION_TYPE_DEFAULT,
+                    PNG_FILTER_TYPE_DEFAULT);
 
        /* image text info */
        if (ibuf->metadata) {
index fe53a883f82aeb4a96c81aeb09b12ecf129c7d34..6519e389a212731a2cdcf051712d108071ad1c01 100644 (file)
@@ -539,7 +539,7 @@ static void shrink_picture_byte(
                                *dst++ = (val= (dst_line1[x].a * f) >> 15) > 255 ? 255: val;
                        }
                        memset(dst_line1, 0, dst_width *
-                                  sizeof(struct scale_outpix_byte));
+                              sizeof(struct scale_outpix_byte));
                        temp = dst_line1;
                        dst_line1 = dst_line2;
                        dst_line2 = temp;
@@ -740,7 +740,7 @@ static void shrink_picture_float(
                                *dst++ = dst_line1[x].a * f;
                        }
                        memset(dst_line1, 0, dst_width *
-                                  sizeof(struct scale_outpix_float));
+                              sizeof(struct scale_outpix_float));
                        temp = dst_line1;
                        dst_line1 = dst_line2;
                        dst_line2 = temp;
@@ -803,21 +803,21 @@ static int q_scale_linear_interpolation(
        }
 
        if (ibuf->rect) {
-               unsigned char * newrect = 
-                       MEM_mallocN(newx * newy * sizeof(int), "q_scale rect");
+               unsigned char * newrect =
+                       MEM_mallocN(newx * newy * sizeof(int), "q_scale rect");
                q_scale_byte((unsigned char *)ibuf->rect, newrect, ibuf->x, ibuf->y,
-                                newx, newy);
+                            newx, newy);
 
                imb_freerectImBuf(ibuf);
                ibuf->mall |= IB_rect;
                ibuf->rect = (unsigned int *) newrect;
        }
        if (ibuf->rect_float) {
-               float * newrect = 
-                       MEM_mallocN(newx * newy * 4 *sizeof(float), 
-                                       "q_scale rectfloat");
+               float * newrect =
+                       MEM_mallocN(newx * newy * 4 *sizeof(float),
+                                   "q_scale rectfloat");
                q_scale_float(ibuf->rect_float, newrect, ibuf->x, ibuf->y,
-                                 newx, newy);
+                             newx, newy);
                imb_freerectfloatImBuf(ibuf);
                ibuf->mall |= IB_rectfloat;
                ibuf->rect_float = newrect;
index 0eaa87542d5f7c0a5c442550bc49320110e5fe80..149b5fb90966ec46e329eeffe23659c67b293887 100644 (file)
@@ -64,7 +64,7 @@ static ImBuf *loadblend_thumb(gzFile gzfile)
        else
                return NULL;
 
-        sizeof_bhead = 16 + pointer_size;
+       sizeof_bhead = 16 + pointer_size;
 
        if(buf[8]=='V')
                endian= B_ENDIAN; /* big: PPC */
index 7fa26478ae2c00a8e1d3feba48703d3068cbfb5f..c135254b11b7501a6dc480f2e628deed49541bc8 100644 (file)
@@ -58,8 +58,8 @@ typedef struct IDProperty {
        IDPropertyData data;    /* note, alignment for 64 bits */
        int len; /* array length, also (this is important!) string length + 1.
                                the idea is to be able to reuse array realloc functions on strings.*/
-       /*totallen is total length of allocated array/string, including a buffer.
-         Note that the buffering is mild; the code comes from python's list implementation.*/
+       /* totallen is total length of allocated array/string, including a buffer.
+        * Note that the buffering is mild; the code comes from python's list implementation.*/
        int totallen; /*strings and arrays are both buffered, though the buffer isn't
                                        saved.*/
 } IDProperty;
index 48185eefdbc4328acbc32f61d4554f299c57d75d..d45a8f83f76cb74f363db15a5bce3dae9b1335f4 100644 (file)
@@ -296,9 +296,9 @@ typedef struct SoftBody {
        /* springs */
        float inspring;         /* softbody inner springs */
        float infrict;          /* softbody inner springs friction */
-        char  namedVG_Spring_K[32]; /* along with it introduce Spring_K painting
-                                                       starting to fix old bug .. nastyness that VG are indexes 
-                                                               rather find them by name tag to find it -> jow20090613 */
+       char  namedVG_Spring_K[32]; /* along with it introduce Spring_K painting
+                                      starting to fix old bug .. nastyness that VG are indexes
+                                      rather find them by name tag to find it -> jow20090613 */
        
        /* baking */
        int sfra, efra;
index b3593c5e08c8027f7c8d6b7b8144a2821e776a79..451774b1abb9d64d8a2063b88d7752a92ae9a5d1 100644 (file)
@@ -103,7 +103,7 @@ typedef struct bCollisionSensor {
        // struct Material *ma; // XXX remove materialName
        short damptimer, damp;
        short mode;             /* flag to choose material or property */
-        short pad2;
+       short pad2;
 } bCollisionSensor;
 
 typedef struct bRadarSensor {
index 93fdc2b21364da9977e6a2642735c67f628506d9..95f44d86058b5ab2964758d069dafa9525002f56 100644 (file)
@@ -1394,11 +1394,12 @@ static void rna_def_curve(BlenderRNA *brna)
        RNA_def_property_update(prop, 0, "rna_Curve_update_data");
        
        /* not supported yet
-        prop= RNA_def_property(srna, "texspace_rot", PROP_FLOAT, PROP_EULER);
-        RNA_def_property_float(prop, NULL, "rot");
-        RNA_def_property_ui_text(prop, "Texture Space Rotation", "Texture space rotation");
-        RNA_def_property_editable_func(prop, texspace_editable);
-        RNA_def_property_update(prop, 0, "rna_Curve_update_data");*/
+       prop= RNA_def_property(srna, "texspace_rot", PROP_FLOAT, PROP_EULER);
+       RNA_def_property_float(prop, NULL, "rot");
+       RNA_def_property_ui_text(prop, "Texture Space Rotation", "Texture space rotation");
+       RNA_def_property_editable_func(prop, texspace_editable);
+       RNA_def_property_update(prop, 0, "rna_Curve_update_data");
+       */
        
        prop= RNA_def_property(srna, "use_uv_as_generated", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flag", CU_UV_ORCO);
index 629711fcf96cc4e05528e9bf01badae1ef7ff3e9..5b71df86f30d74f2fc57c80564696fb6a8341b3e 100644 (file)
@@ -265,7 +265,7 @@ static void rna_def_lamp_sky_settings(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Sun Size", "Sun size");
        RNA_def_property_update(prop, 0, "rna_Lamp_sky_update");
 
-         prop= RNA_def_property(srna, "backscattered_light", PROP_FLOAT, PROP_NONE);
+       prop= RNA_def_property(srna, "backscattered_light", PROP_FLOAT, PROP_NONE);
        RNA_def_property_range(prop, -1.0f, 1.0f);
        RNA_def_property_ui_text(prop, "Backscattered Light", "Backscattered light");
        RNA_def_property_update(prop, 0, "rna_Lamp_sky_update");
index 93cdfb6069b9562e9c6210728cd2488ec47a7335..48a4d055520909cf09c16ca2363d14da9038bd56 100644 (file)
@@ -1945,11 +1945,12 @@ static void rna_def_mesh(BlenderRNA *brna)
        RNA_def_property_update(prop, 0, "rna_Mesh_update_draw");
        
        /* not supported yet
-        prop= RNA_def_property(srna, "texspace_rot", PROP_FLOAT, PROP_EULER);
-        RNA_def_property_float(prop, NULL, "rot");
-        RNA_def_property_ui_text(prop, "Texture Space Rotation", "Texture space rotation");
-        RNA_def_property_editable_func(prop, texspace_editable);
-        RNA_def_property_update(prop, 0, "rna_Mesh_update_draw");*/
+       prop= RNA_def_property(srna, "texspace_rot", PROP_FLOAT, PROP_EULER);
+       RNA_def_property_float(prop, NULL, "rot");
+       RNA_def_property_ui_text(prop, "Texture Space Rotation", "Texture space rotation");
+       RNA_def_property_editable_func(prop, texspace_editable);
+       RNA_def_property_update(prop, 0, "rna_Mesh_update_draw");
+       */
        
        /* materials */
        prop= RNA_def_property(srna, "materials", PROP_COLLECTION, PROP_NONE);
index 2b847084e10d51698f6a4221c9e9b3bcdd19373b..323fb6780fb69dbb91e1687caff12f352c41be86 100644 (file)
@@ -317,11 +317,12 @@ static void rna_def_metaball(BlenderRNA *brna)
        RNA_def_property_update(prop, 0, "rna_MetaBall_update_data");
        
        /* not supported yet
-        prop= RNA_def_property(srna, "texspace_rot", PROP_FLOAT, PROP_EULER);
-        RNA_def_property_float(prop, NULL, "rot");
-        RNA_def_property_ui_text(prop, "Texture Space Rotation", "Texture space rotation");
-        RNA_def_property_editable_func(prop, "rna_Meta_texspace_editable");
-        RNA_def_property_update(prop, 0, "rna_MetaBall_update_data");*/
+       prop= RNA_def_property(srna, "texspace_rot", PROP_FLOAT, PROP_EULER);
+       RNA_def_property_float(prop, NULL, "rot");
+       RNA_def_property_ui_text(prop, "Texture Space Rotation", "Texture space rotation");
+       RNA_def_property_editable_func(prop, "rna_Meta_texspace_editable");
+       RNA_def_property_update(prop, 0, "rna_MetaBall_update_data");
+       */
        
        /* materials */
        prop= RNA_def_property(srna, "materials", PROP_COLLECTION, PROP_NONE);
index c22ded39a7471d42ccbaea426c272e6179f8c9de..2d3944a5b074f7cd76cad47e55cc58ebac0f28a8 100644 (file)
@@ -3025,7 +3025,7 @@ static void rna_def_scene_render_data(BlenderRNA *brna)
        
        prop= RNA_def_property(srna, "use_full_sample", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "scemode", R_FULL_SAMPLE);
-        RNA_def_property_boolean_funcs(prop, "rna_RenderSettings_full_sample_get", NULL);
+       RNA_def_property_boolean_funcs(prop, "rna_RenderSettings_full_sample_get", NULL);
        RNA_def_property_ui_text(prop, "Full Sample",
                                 "Save for every anti-aliasing sample the entire RenderLayer results "
                                 "(this solves anti-aliasing issues with compositing)");
index 95e16f3bea4ed3eb131c938831511f56fc2b353b..d2d875150e8b01d7457ca811c01e9036d449aa93 100644 (file)
@@ -110,7 +110,7 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
                DagNode *curNode = dag_get_node(forest, amd->object);
 
                dag_add_relation(forest, curNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Armature Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Armature Modifier");
        }
 }
 
@@ -169,7 +169,7 @@ static void deformMatricesEM(
        if(!derivedData) dm = CDDM_from_editmesh(editData, ob->data);
 
        armature_deform_verts(amd->object, ob, dm, vertexCos, defMats, numVerts,
-                                 amd->deformflag, NULL, amd->defgrp_name);
+                             amd->deformflag, NULL, amd->defgrp_name);
 
        if(!derivedData) dm->release(dm);
 }
@@ -183,7 +183,7 @@ static void deformMatrices(ModifierData *md, Object *ob, DerivedMesh *derivedDat
        if(!derivedData) dm = CDDM_from_mesh((Mesh*)ob->data, ob);
 
        armature_deform_verts(amd->object, ob, dm, vertexCos, defMats, numVerts,
-                                 amd->deformflag, NULL, amd->defgrp_name);
+                             amd->deformflag, NULL, amd->defgrp_name);
 
        if(!derivedData) dm->release(dm);
 }
index f56eda674c5f5c6b6c3f02251eaf92794522a6cd..ce052b2c1bdb5f49eb1765954e44f85bab50af9c 100644 (file)
@@ -116,25 +116,25 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
                DagNode *curNode = dag_get_node(forest, amd->start_cap);
 
                dag_add_relation(forest, curNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Array Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Array Modifier");
        }
        if (amd->end_cap) {
                DagNode *curNode = dag_get_node(forest, amd->end_cap);
 
                dag_add_relation(forest, curNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Array Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Array Modifier");
        }
        if (amd->curve_ob) {
                DagNode *curNode = dag_get_node(forest, amd->curve_ob);
 
                dag_add_relation(forest, curNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Array Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Array Modifier");
        }
        if (amd->offset_ob) {
                DagNode *curNode = dag_get_node(forest, amd->offset_ob);
 
                dag_add_relation(forest, curNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Array Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Array Modifier");
        }
 }
 
@@ -275,8 +275,8 @@ static DerivedMesh *arrayModifier_doArray(ArrayModifierData *amd,
                        unit_m4(obinv);
 
                mul_serie_m4(result_mat, offset,
-                                obinv, amd->offset_ob->obmat,
-        NULL, NULL, NULL, NULL, NULL);
+                            obinv, amd->offset_ob->obmat,
+                            NULL, NULL, NULL, NULL, NULL);
                copy_m4_m4(offset, result_mat);
        }
 
index 1828781690be1161a2aacd342a1120bfb2e9fa2e..e502878fca51c29b57a3a7d0cfa678d9e5b7a47b 100644 (file)
@@ -85,7 +85,7 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
                DagNode *curNode = dag_get_node(forest, bmd->object);
 
                dag_add_relation(forest, curNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Boolean Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Boolean Modifier");
        }
 }
 
index bdf67c25e7441618a582523c48b2fc2201165fd4..261d0c6c0d37a69fb0d445f14d5cf834d2e06db1 100644 (file)
@@ -106,7 +106,7 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
                DagNode *curNode = dag_get_node(forest, cmd->object);
 
                dag_add_relation(forest, curNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Curve Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Curve Modifier");
        }
 }
 
@@ -120,7 +120,7 @@ static void deformVerts(ModifierData *md, Object *ob,
        CurveModifierData *cmd = (CurveModifierData*) md;
 
        curve_deform_verts(md->scene, cmd->object, ob, derivedData, vertexCos, numVerts,
-                          cmd->name, cmd->defaxis);
+                          cmd->name, cmd->defaxis);
 }
 
 static void deformVertsEM(
index a7a25fbb00e39fdc9ad4d8f4cbba5bfc4296366c..da90879ed6d1e48c89aff7f0382b0040ce3d3695 100644 (file)
@@ -157,13 +157,13 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
                DagNode *curNode = dag_get_node(forest, dmd->map_object);
 
                dag_add_relation(forest, curNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Displace Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Displace Modifier");
        }
        
 
        if(dmd->texmapping == MOD_DISP_MAP_GLOBAL)
                dag_add_relation(forest, obNode, obNode,
-                                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Displace Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Displace Modifier");
        
 }
 
@@ -244,7 +244,7 @@ static void deformVerts(ModifierData *md, Object *ob,
        DerivedMesh *dm= get_cddm(ob, NULL, derivedData, vertexCos);
 
        displaceModifier_do((DisplaceModifierData *)md, ob, dm,
-                                vertexCos, numVerts);
+                           vertexCos, numVerts);
 
        if(dm != derivedData)
                dm->release(dm);
@@ -257,7 +257,7 @@ static void deformVertsEM(
        DerivedMesh *dm= get_cddm(ob, editData, derivedData, vertexCos);
 
        displaceModifier_do((DisplaceModifierData *)md, ob, dm,
-                                vertexCos, numVerts);
+                           vertexCos, numVerts);
 
        if(dm != derivedData)
                dm->release(dm);
index ad1a636589f5049e04aa33dbb50fb1a6b9628c04..30e801c9b426f89a5c4816de3c88429348a3c7fb 100644 (file)
@@ -170,7 +170,7 @@ static void deformVerts(ModifierData *md, Object *ob,
        }
        invert_m4_m4(ob->imat, ob->obmat);
        mul_serie_m4(mat, ob->imat, dmat, hmd->parentinv,
-                        NULL, NULL, NULL, NULL, NULL);
+                    NULL, NULL, NULL, NULL, NULL);
 
        modifier_get_vgroup(ob, dm, hmd->name, &dvert, &defgrp_index);
        max_dvert = (dvert)? numVerts: 0;
index 9ef5e501acaf44832bebc783ace5f517fd1a93b8..4d5c63986a5191be432de26397bd5fd091f3bae9 100644 (file)
@@ -98,7 +98,7 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
                DagNode *latNode = dag_get_node(forest, lmd->object);
 
                dag_add_relation(forest, latNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Lattice Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Lattice Modifier");
        }
 }
 
@@ -115,7 +115,7 @@ static void deformVerts(ModifierData *md, Object *ob,
        modifier_vgroup_cache(md, vertexCos); /* if next modifier needs original vertices */
        
        lattice_deform_verts(lmd->object, ob, derivedData,
-                                vertexCos, numVerts, lmd->name);
+                            vertexCos, numVerts, lmd->name);
 }
 
 static void deformVertsEM(
index b36850da78685ab0099e66c4a5b41579b713b6d5..2e744337b97e24ad47c30911d19d2397b845981c 100644 (file)
@@ -91,7 +91,7 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
                DagNode *latNode = dag_get_node(forest, mmd->mirror_ob);
 
                dag_add_relation(forest, latNode, obNode,
-                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Mirror Modifier");
+                                DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Mirror Modifier");
        }
 }
 
index edd16c045f68caae82cbbd0901af8057ad289e4b..2eaa142db4786c69fdda6b886833559349b08f9f 100644 (file)
@@ -225,7 +225,7 @@ static void deformVerts(
        DerivedMesh *dm= get_dm(ob, NULL, derivedData, NULL, 0);
 
        smoothModifier_do((SmoothModifierData *)md, ob, dm,
-                          vertexCos, numVerts);
+                         vertexCos, numVerts);
 
        if(dm != derivedData)
                dm->release(dm);
@@ -238,7 +238,7 @@ static void deformVertsEM(
        DerivedMesh *dm= get_dm(ob, editData, derivedData, NULL, 0);
 
        smoothModifier_do((SmoothModifierData *)md, ob, dm,
-                          vertexCos, numVerts);
+                         vertexCos, numVerts);
 
        if(dm != derivedData)
                dm->release(dm);
index 5ca38b74420d167dc8da3836343f814570de1d1b..3b2a23421678d2342c435307847694a2b9b50b45 100644 (file)
@@ -53,9 +53,9 @@ static void do_diff_matte(bNode *node, float *outColor, float *inColor1, float *
        float difference;
        float alpha;
 
-       difference= fabs(inColor2[0]-inColor1[0])+
-                          fabs(inColor2[1]-inColor1[1])+
-                          fabs(inColor2[2]-inColor1[2]);
+       difference= fabs(inColor2[0]-inColor1[0]) +
+               fabs(inColor2[1]-inColor1[1]) +
+               fabs(inColor2[2]-inColor1[2]);
 
        /*average together the distances*/
        difference=difference/3.0f;
index 41427c422867571dbaf7a826d46e0d234192cbbb..672d2af06465fcd1c594a9f030557b679421f77f 100644 (file)
@@ -358,41 +358,41 @@ static CompBuf *compbuf_from_pass(RenderData *rd, RenderLayer *rl, int rectx, in
 
 static void node_composit_rlayers_out(RenderData *rd, RenderLayer *rl, bNodeStack **out, int rectx, int recty)
 {
-   if(out[RRES_OUT_Z]->hasoutput)
-         out[RRES_OUT_Z]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_Z);
-   if(out[RRES_OUT_VEC]->hasoutput)
-         out[RRES_OUT_VEC]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_VECTOR);
-   if(out[RRES_OUT_NORMAL]->hasoutput)
-         out[RRES_OUT_NORMAL]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_NORMAL);
-   if(out[RRES_OUT_UV]->hasoutput)
-         out[RRES_OUT_UV]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_UV);
-
-   if(out[RRES_OUT_RGBA]->hasoutput)
-         out[RRES_OUT_RGBA]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_RGBA);
-   if(out[RRES_OUT_DIFF]->hasoutput)
-         out[RRES_OUT_DIFF]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_DIFFUSE);
-   if(out[RRES_OUT_SPEC]->hasoutput)
-         out[RRES_OUT_SPEC]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_SPEC);
-   if(out[RRES_OUT_SHADOW]->hasoutput)
-         out[RRES_OUT_SHADOW]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_SHADOW);
-   if(out[RRES_OUT_AO]->hasoutput)
-         out[RRES_OUT_AO]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_AO);
-   if(out[RRES_OUT_REFLECT]->hasoutput)
-         out[RRES_OUT_REFLECT]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_REFLECT);
-   if(out[RRES_OUT_REFRACT]->hasoutput)
-         out[RRES_OUT_REFRACT]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_REFRACT);
-   if(out[RRES_OUT_INDIRECT]->hasoutput)
-         out[RRES_OUT_INDIRECT]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_INDIRECT);
-   if(out[RRES_OUT_INDEXOB]->hasoutput)
-          out[RRES_OUT_INDEXOB]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_INDEXOB);
+       if(out[RRES_OUT_Z]->hasoutput)
+               out[RRES_OUT_Z]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_Z);
+       if(out[RRES_OUT_VEC]->hasoutput)
+               out[RRES_OUT_VEC]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_VECTOR);
+       if(out[RRES_OUT_NORMAL]->hasoutput)
+               out[RRES_OUT_NORMAL]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_NORMAL);
+       if(out[RRES_OUT_UV]->hasoutput)
+               out[RRES_OUT_UV]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_UV);
+
+       if(out[RRES_OUT_RGBA]->hasoutput)
+               out[RRES_OUT_RGBA]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_RGBA);
+       if(out[RRES_OUT_DIFF]->hasoutput)
+               out[RRES_OUT_DIFF]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_DIFFUSE);
+       if(out[RRES_OUT_SPEC]->hasoutput)
+               out[RRES_OUT_SPEC]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_SPEC);
+       if(out[RRES_OUT_SHADOW]->hasoutput)
+               out[RRES_OUT_SHADOW]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_SHADOW);
+       if(out[RRES_OUT_AO]->hasoutput)
+               out[RRES_OUT_AO]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_AO);
+       if(out[RRES_OUT_REFLECT]->hasoutput)
+               out[RRES_OUT_REFLECT]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_REFLECT);
+       if(out[RRES_OUT_REFRACT]->hasoutput)
+               out[RRES_OUT_REFRACT]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_REFRACT);
+       if(out[RRES_OUT_INDIRECT]->hasoutput)
+               out[RRES_OUT_INDIRECT]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_INDIRECT);
+       if(out[RRES_OUT_INDEXOB]->hasoutput)
+               out[RRES_OUT_INDEXOB]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_INDEXOB);
        if(out[RRES_OUT_INDEXMA]->hasoutput)
                out[RRES_OUT_INDEXMA]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_INDEXMA);
-   if(out[RRES_OUT_MIST]->hasoutput)
-          out[RRES_OUT_MIST]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_MIST);
-   if(out[RRES_OUT_EMIT]->hasoutput)
-          out[RRES_OUT_EMIT]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_EMIT);
-   if(out[RRES_OUT_ENV]->hasoutput)
-          out[RRES_OUT_ENV]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_ENVIRONMENT);
+       if(out[RRES_OUT_MIST]->hasoutput)
+               out[RRES_OUT_MIST]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_MIST);
+       if(out[RRES_OUT_EMIT]->hasoutput)
+               out[RRES_OUT_EMIT]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_EMIT);
+       if(out[RRES_OUT_ENV]->hasoutput)
+               out[RRES_OUT_ENV]->data= compbuf_from_pass(rd, rl, rectx, recty, SCE_PASS_ENVIRONMENT);
 }
 
 static void node_composit_exec_rlayers(void *data, bNode *node, bNodeStack **UNUSED(in), bNodeStack **out)
index c12cc1ccdd2d64392b129a9462bec9714241bf3d..c84aab83b7e9a2701fa660d7ce80721b149b1df0 100644 (file)
@@ -263,10 +263,10 @@ static void noise_vector(float x, float y, float z, int nb, float v[3])
 {
        /* Simply evaluate noise at 3 different positions */
        v[0]= (float)(2.0f * BLI_gNoise(1.f, x + 9.321f, y - 1.531f, z - 7.951f, 0,
-                                nb) - 1.0f);
+                                       nb) - 1.0f);
        v[1]= (float)(2.0f * BLI_gNoise(1.f, x, y, z, 0, nb) - 1.0f);
        v[2]= (float)(2.0f * BLI_gNoise(1.f, x + 6.327f, y + 0.1671f, z - 2.672f, 0,
-                                nb) - 1.0f);
+                                       nb) - 1.0f);
 }
 
 static PyObject *Noise_vector(PyObject *UNUSED(self), PyObject *args)
@@ -442,10 +442,10 @@ static PyObject *Noise_voronoi(PyObject *UNUSED(self), PyObject *args)
                return NULL;
        voronoi(x, y, z, da, pa, me, dtype);
        return Py_BuildValue("[[ffff][[fff][fff][fff][fff]]]",
-                             da[0], da[1], da[2], da[3],
-                             pa[0], pa[1], pa[2],
-                             pa[3], pa[4], pa[5],
-                             pa[6], pa[7], pa[8], pa[9], pa[10], pa[11]);
+                            da[0], da[1], da[2], da[3],
+                            pa[0], pa[1], pa[2],
+                            pa[3], pa[4], pa[5],
+                            pa[6], pa[7], pa[8], pa[9], pa[10], pa[11]);
 }
 
 /*-------------------------------------------------------------------------*/
index 279192e9692ac670b073515012ed2be25a9fcc37..4307529002c10ec74b2343e9a921e5abff984542 100644 (file)
@@ -311,11 +311,11 @@ int startquicktime (struct anim *anim)
        [QTMovie enterQTKitOnThread];           
 
        attributes = [NSDictionary dictionaryWithObjectsAndKeys:
-                                 [NSString stringWithCString:anim->name 
-                                                                        encoding:[NSString defaultCStringEncoding]], QTMovieFileNameAttribute,
-                                [NSNumber numberWithBool:NO], QTMovieEditableAttribute,
-                                nil];
-       
+               [NSString stringWithCString:anim->name
+               encoding:[NSString defaultCStringEncoding]], QTMovieFileNameAttribute,
+               [NSNumber numberWithBool:NO], QTMovieEditableAttribute,
+           nil];
+
        anim->qtime->movie = [QTMovie movieWithAttributes:attributes error:NULL];
        
        if (!anim->qtime->movie) {
index 77cc45664a4c2d52086f41716a49b1e117924437..5c0460d4e7485ff8a02c165e8f702456484f391d 100644 (file)
@@ -657,9 +657,12 @@ static void check_renderbutton_framerate(RenderData *rd, ReportList *reports)
        CheckError(err, "SCGetInfo fr error", reports);
 
        if( (rd->frs_sec == 24 || rd->frs_sec == 30 || rd->frs_sec == 60) &&
-               (qtdata->gTemporalSettings.frameRate == 1571553 ||
-                qtdata->gTemporalSettings.frameRate == 1964113 ||
-                qtdata->gTemporalSettings.frameRate == 3928227)) {;} 
+           (qtdata->gTemporalSettings.frameRate == 1571553 ||
+            qtdata->gTemporalSettings.frameRate == 1964113 ||
+            qtdata->gTemporalSettings.frameRate == 3928227))
+       {
+               /* do nothing */
+       }
        else {
                if (rd->frs_sec_base > 0)
                        qtdata->gTemporalSettings.frameRate = 
index f88cba51ac36f274442ca701b62aa17c6dace02a..d7ef371873ad0476ac309efa827f434566796740 100644 (file)
@@ -381,8 +381,9 @@ ImBuf * qtime_fetchibuf (struct anim *anim, int position)
                //add alpha to ibuf
                boxsize = anim->x * anim->y * 4;
                crect = (unsigned char *) rect;
-               for( index = 0; index < boxsize; index+=4, crect+=4 )
-                        crect[3] = 0xFF;
+               for( index = 0; index < boxsize; index+=4, crect+=4 ) {
+                       crect[3] = 0xFF;
+               }
        }
 #endif
 
@@ -522,8 +523,8 @@ int startquicktime (struct anim *anim)
                anim->qtime->have_gw = TRUE;
 
                SetMovieGWorld(anim->qtime->movie,
-                                anim->qtime->offscreenGWorld,
-                                GetGWorldDevice(anim->qtime->offscreenGWorld));
+                              anim->qtime->offscreenGWorld,
+                              GetGWorldDevice(anim->qtime->offscreenGWorld));
                SetMoviePlayHints(anim->qtime->movie, hintsHighQuality, hintsHighQuality);
                
                // sets Media and Track!
@@ -780,7 +781,7 @@ bail:
 
                if( depth < 32 && (**desc).cType != kGIFCodecType) {
                        for(i = 0; i < box; i++, arect+=4)
-                                arect[3] = 0xFF;
+                               arect[3] = 0xFF;
                }
 #endif
 
@@ -799,25 +800,25 @@ bail:
 #if 0
 
 struct ImageDescription {
-        long         idSize;
-        CodecType    cType;
-        long         resvd1;
-        short        resvd2;
-        short        dataRefIndex;
-        short        version;
-        short        revisionLevel;
-        long         vendor;
-        CodecQ       temporalQuality;
-        CodecQ       spatialQuality;
-        short        width;
-        short        height;
-        Fixed        hRes;
-        Fixed        vRes;
-        long         dataSize;
-        short        frameCount;
-        Str31        name;
-        short        depth;
-        short        clutID;
+       long         idSize;
+       CodecType    cType;
+       long         resvd1;
+       short        resvd2;
+       short        dataRefIndex;
+       short        version;
+       short        revisionLevel;
+       long         vendor;
+       CodecQ       temporalQuality;
+       CodecQ       spatialQuality;
+       short        width;
+       short        height;
+       Fixed        hRes;
+       Fixed        vRes;
+       long         dataSize;
+       short        frameCount;
+       Str31        name;
+       short        depth;
+       short        clutID;
 };
 
 #endif // 0
index fac3329bae09a0cd06772964ffa78d9a045f693a..c00df7db87e8e1b392bd1dcae4bb6d9f9b15262c 100644 (file)
@@ -233,7 +233,7 @@ void RE_MergeFullSample(struct Render *re, struct Main *bmain, struct Scene *sce
 
 /* ancient stars function... go away! */
 void RE_make_stars(struct Render *re, struct Scene *scenev3d, void (*initfunc)(void),
-                                  void (*vertexfunc)(float*),  void (*termfunc)(void));
+                   void (*vertexfunc)(float*),  void (*termfunc)(void));
 
 /* display and event callbacks */
 void RE_display_init_cb        (struct Render *re, void *handle, void (*f)(void *handle, RenderResult *rr));
index d1f7059416d33e1c070f7bdea403ffffc01d380f..785d9ac69d80daa3b98063ab5e2df46109cb7b50 100644 (file)
@@ -1092,7 +1092,7 @@ static int imagewraposa_aniso(Tex *tex, Image *ima, ImBuf *ibuf, const float tex
 
        if (tex->imaflag & TEX_FILTER_MIN) {
                // make sure the filtersize is minimal in pixels (normal, ref map can have miniature pixel dx/dy)
-                const float addval = (0.5f * tex->filtersize) / (float)MIN2(ibuf->x, ibuf->y);
+               const float addval = (0.5f * tex->filtersize) / (float)MIN2(ibuf->x, ibuf->y);
                if (addval > minx) minx = addval;
                if (addval > miny) miny = addval;
        }
index 0984c9e784fb5c6d33e3bc3d054f211a88e95e95..e20fd85d0f0f5e325d967fb8fb6c2b625c4867b8 100644 (file)
@@ -1034,8 +1034,8 @@ static float occ_quad_form_factor(float *p, float *n, float *q0, float *q1, floa
 
        /* dot */
        vresult.v = (vec_splat_float(n[0])*gx +
-                                vec_splat_float(n[1])*gy +
-                                vec_splat_float(n[2])*gz)*vangle;
+                    vec_splat_float(n[1])*gy +
+                    vec_splat_float(n[2])*gz)*vangle;
 
        result= (vresult.f[0] + vresult.f[1] + vresult.f[2] + vresult.f[3])*(0.5f/(float)M_PI);
        result= MAX2(result, 0.0f);
index d4bd8f8a693acdca26f3c46ab4b70d537b3e841e..d7045c0b322465af7a43e37ddd527d5298291797 100644 (file)
@@ -159,7 +159,7 @@ static void stats_background(void *UNUSED(arg), RenderStats *rs)
        megs_peak_memory = (peak_memory)/(1024.0*1024.0);
 
        fprintf(stdout, "Fra:%d Mem:%.2fM (%.2fM, peak %.2fM) ", rs->cfra,
-                                  megs_used_memory, mmap_used_memory, megs_peak_memory);
+               megs_used_memory, mmap_used_memory, megs_peak_memory);
 
        if(rs->curfield)
                fprintf(stdout, "Field %d ", rs->curfield);
@@ -1831,7 +1831,7 @@ static void do_render_3d(Render *re)
        if(render_scene_needs_vector(re))
                RE_Database_FromScene_Vectors(re, re->main, re->scene, re->lay);
        else
-          RE_Database_FromScene(re, re->main, re->scene, re->lay, 1);
+               RE_Database_FromScene(re, re->main, re->scene, re->lay, 1);
        
        /* clear UI drawing locks */
        if(re->draw_lock)
index 85954d20a300b42456d5bee0d43b24056f21fc6e..afc52f7c92a9a60f54c6d010e3252f89d5b7dcb9 100644 (file)
@@ -2721,9 +2721,9 @@ void do_volume_tex(ShadeInput *shi, const float *xyz, int mapto_flag, float *col
                                        mul_m4_v3(ob->imat_ren, co);
                                }
                        }
-                       else if(mtex->texco==TEXCO_GLOB) {                                                      
-                          copy_v3_v3(co, xyz);
-                          mul_m4_v3(re->viewinv, co);
+                       else if(mtex->texco==TEXCO_GLOB) {
+                               copy_v3_v3(co, xyz);
+                               mul_m4_v3(re->viewinv, co);
                        }
                        else continue;  // can happen when texco defines disappear and it renders old files
 
index f3eb22347788fad1c5dfb629497ccb6ad666a15d..8cb7009f7560a0a2354da2649d16057b5d1a86f1 100644 (file)
@@ -1083,7 +1083,7 @@ static float readshadowbuf(ShadBuf *shb, ShadSampleBuf *shsample, int bias, int
        else {
                /* got warning on this for 64 bits.... */
                /* but it's working code! in this case rz is not a pointer but zvalue (ton) */
-                zsamp= GET_INT_FROM_POINTER(rz);
+               zsamp= GET_INT_FROM_POINTER(rz);
        }
 
        /* tricky stuff here; we use ints which can overflow easily with bias values */
@@ -1267,7 +1267,7 @@ static float readshadowbuf_halo(ShadBuf *shb, ShadSampleBuf *shsample, int xs, i
        else {
                /* same as before */
                /* still working code! (ton) */
-                zsamp= GET_INT_FROM_POINTER(rz);
+               zsamp= GET_INT_FROM_POINTER(rz);
        }
 
        /* NO schadow when sampled at 'eternal' distance */
index 03b0d637de11356bb8683e1a3ad54ee925633ac3..4342c9f4bffbfcb3abfb14a6e1647f7c9d9f0dbc 100644 (file)
@@ -457,14 +457,14 @@ void WM_event_print(wmEvent *event)
                RNA_enum_identifier(event_value_items, event->val, &val_id);
 
                printf("wmEvent - type:%d/%s, val:%d/%s, "
-                          "shift:%d, ctrl:%d, alt:%d, oskey:%d, keymodifier:%d, "
-                          "mouse:(%d,%d), ascii:'%c', utf8:'%.*s', "
-                          "keymap_idname:%s, pointer:%p\n",
-                          event->type, type_id, event->val, val_id,
-                          event->shift, event->ctrl, event->alt, event->oskey, event->keymodifier,
-                          event->x, event->y, event->ascii,
+                      "shift:%d, ctrl:%d, alt:%d, oskey:%d, keymodifier:%d, "
+                      "mouse:(%d,%d), ascii:'%c', utf8:'%.*s', "
+                      "keymap_idname:%s, pointer:%p\n",
+                      event->type, type_id, event->val, val_id,
+                      event->shift, event->ctrl, event->alt, event->oskey, event->keymodifier,
+                      event->x, event->y, event->ascii,
                       BLI_str_utf8_size(event->utf8_buf), event->utf8_buf,
-                          event->keymap_idname, (void *)event);
+                      event->keymap_idname, (void *)event);
        }
        else {
                printf("wmEvent - NULL\n");
index f12dec6459afae4304eb9f60b857084e87b9e4c3..4367a8b03ef99d0512755442f19a28aa4931463d 100644 (file)
@@ -3062,8 +3062,8 @@ static int radial_control_get_path(PointerRNA *ctx_ptr, wmOperator *op,
        if(*r_prop && (len = RNA_property_array_length(r_ptr, *r_prop)) != req_length) {
                MEM_freeN(str);
                BKE_reportf(op->reports, RPT_ERROR,
-                           "Property from path %s has length %d instead of %d",
-                           name, len, req_length);
+                           "Property from path %s has length %d instead of %d",
+                           name, len, req_length);
                return 0;
        }
 
index ecf9427eddd5573eb9da79e8527d4e1a1f610de1..aa62479d420420a63c8e021a968491e4d92f6337 100644 (file)
@@ -177,8 +177,9 @@ void BL_ShapeActionActuator::BlendShape(Key* key, float srcweight)
        dstweight = 1.0F - srcweight;
 
        for (it=m_blendshape.begin(), kb = (KeyBlock*)key->block.first; 
-                kb && it != m_blendshape.end(); 
-                kb = (KeyBlock*)kb->next, it++) {
+            kb && it != m_blendshape.end();
+            kb = (KeyBlock*)kb->next, it++)
+       {
                kb->curval = kb->curval * dstweight + (*it) * srcweight;
        }
 }
index bae3eb112989b1c3694a447a218ef80bfd061698..e6802b6ad041537f850f91f1019d6c9bf152db3d 100644 (file)
@@ -36,8 +36,8 @@ public:
        CIntValue();
        CIntValue(cInt innie);
        CIntValue(cInt innie,
-                         const char *name,
-                         AllocationTYPE alloctype=CValue::HEAPVALUE);
+                 const char *name,
+                 AllocationTYPE alloctype=CValue::HEAPVALUE);
        
        virtual CValue* Calc(VALUE_OPERATOR op,
                                                 CValue *val);
index 4bac9c10e130bd3cef8228715edc4e31c3cb012b..91352ce58bc251765bf1fb66edd1b0aa02010af1 100644 (file)
@@ -88,9 +88,9 @@ class SCA_MouseSensor : public SCA_ISensor
        bool isValid(KX_MOUSESENSORMODE);
        
        SCA_MouseSensor(class SCA_MouseManager* keybdmgr,
-                                       int startx,int starty,
-                                  short int mousemode,
-                                  SCA_IObject* gameobj);
+                       int startx,int starty,
+                       short int mousemode,
+                       SCA_IObject* gameobj);
 
        virtual ~SCA_MouseSensor();
        virtual CValue* GetReplica();
index cc7630b7afdf6f0281c27d95033beb3d40e36361..df1bf31ec12461d95c19857ce3118d04d6c81c11 100644 (file)
@@ -451,14 +451,14 @@ MakeScreenShot(
 
        // png image settings
        png_set_IHDR(png_ptr,
-                info_ptr,
-                GetWidth(),
-                GetHeight(),
-                8,
-                color_type,
-                PNG_INTERLACE_NONE,
-                PNG_COMPRESSION_TYPE_DEFAULT,
-                PNG_FILTER_TYPE_DEFAULT);
+                    info_ptr,
+                    GetWidth(),
+                    GetHeight(),
+                    8,
+                    color_type,
+                    PNG_INTERLACE_NONE,
+                    PNG_COMPRESSION_TYPE_DEFAULT,
+                    PNG_FILTER_TYPE_DEFAULT);
 
        // write the file header information
        png_write_info(png_ptr, info_ptr);
index 931e5412338dce12c8ecd2f7c84e7b3ce46e8549..1d5a3dd461a62e69e1e15c776db300da2e6feb27 100644 (file)
@@ -309,8 +309,9 @@ void BL_Action::BlendShape(Key* key, float srcweight, std::vector<float>& blends
        dstweight = 1.0F - srcweight;
        //printf("Dst: %f\tSrc: %f\n", srcweight, dstweight);
        for (it=blendshape.begin(), kb = (KeyBlock*)key->block.first; 
-                kb && it != blendshape.end(); 
-                kb = (KeyBlock*)kb->next, it++) {
+            kb && it != blendshape.end();
+            kb = (KeyBlock*)kb->next, it++)
+       {
                //printf("OirgKeys: %f\t%f\n", kb->curval, (*it));
                kb->curval = kb->curval * dstweight + (*it) * srcweight;
                //printf("NewKey: %f\n", kb->curval);
index aea33246a3fc9f66957d9f176d414c4a7579935b..682b42cc3cfcc1cd017b11bdf14657e817bb96e9 100644 (file)
@@ -451,7 +451,7 @@ void BL_Shader::Update( const RAS_MeshSlot & ms, RAS_IRasterizer* rasty )
                const MT_Matrix4x4& view = rasty->GetViewMatrix();
 
                if(mAttr==SHD_TANGENT)
-                        ms.m_mesh->SetMeshModified(true);
+                       ms.m_mesh->SetMeshModified(true);
 
                BL_UniformVecDef::iterator it;
                for(it = mPreDef.begin(); it!= mPreDef.end(); it++)
index 44cfd4bddbcfb2a39372dc6104469f13ddd61321..828c327a22870c30bdb51439695b748ab01a5caf 100644 (file)
@@ -425,21 +425,21 @@ void KX_Dome::GLDrawWarpQuads(void)
                                if (warp.nodes[i][j].i < 0 || warp.nodes[i2][j].i < 0 || warp.nodes[i2][j+1].i < 0 || warp.nodes[i][j+1].i < 0)
                                        continue;
 
-                                glColor3f(warp.nodes[i][j].i,warp.nodes[i][j].i,warp.nodes[i][j].i);
-                                glTexCoord2f((warp.nodes[i][j].u * uv_width), (warp.nodes[i][j].v * uv_height));
-                                glVertex3f(warp.nodes[i][j].x,warp.nodes[i][j].y,0.0);
+                               glColor3f(warp.nodes[i][j].i,warp.nodes[i][j].i,warp.nodes[i][j].i);
+                               glTexCoord2f((warp.nodes[i][j].u * uv_width), (warp.nodes[i][j].v * uv_height));
+                               glVertex3f(warp.nodes[i][j].x,warp.nodes[i][j].y,0.0);
 
-                                glColor3f(warp.nodes[i2][j].i,warp.nodes[i2][j].i,warp.nodes[i2][j].i);
-                                glTexCoord2f((warp.nodes[i2][j].u * uv_width), (warp.nodes[i2][j].v * uv_height));
-                                glVertex3f(warp.nodes[i2][j].x,warp.nodes[i2][j].y,0.0);
+                               glColor3f(warp.nodes[i2][j].i,warp.nodes[i2][j].i,warp.nodes[i2][j].i);
+                               glTexCoord2f((warp.nodes[i2][j].u * uv_width), (warp.nodes[i2][j].v * uv_height));
+                               glVertex3f(warp.nodes[i2][j].x,warp.nodes[i2][j].y,0.0);
 
-                                glColor3f(warp.nodes[i2][j+1].i,warp.nodes[i2][j+1].i,warp.nodes[i2][j+1].i);
-                                glTexCoord2f((warp.nodes[i2][j+1].u * uv_width), (warp.nodes[i2][j+1].v * uv_height));
-                                glVertex3f(warp.nodes[i2][j+1].x,warp.nodes[i2][j+1].y,0.0);
+                               glColor3f(warp.nodes[i2][j+1].i,warp.nodes[i2][j+1].i,warp.nodes[i2][j+1].i);
+                               glTexCoord2f((warp.nodes[i2][j+1].u * uv_width), (warp.nodes[i2][j+1].v * uv_height));
+                               glVertex3f(warp.nodes[i2][j+1].x,warp.nodes[i2][j+1].y,0.0);
 
-                                glColor3f(warp.nodes[i2][j+1].i,warp.nodes[i2][j+1].i,warp.nodes[i2][j+1].i);
-                                glTexCoord2f((warp.nodes[i2][j+1].u * uv_width), (warp.nodes[i2][j+1].v * uv_height));
-                                glVertex3f(warp.nodes[i2][j+1].x,warp.nodes[i2][j+1].y,0.0);
+                               glColor3f(warp.nodes[i2][j+1].i,warp.nodes[i2][j+1].i,warp.nodes[i2][j+1].i);
+                               glTexCoord2f((warp.nodes[i2][j+1].u * uv_width), (warp.nodes[i2][j+1].v * uv_height));
+                               glVertex3f(warp.nodes[i2][j+1].x,warp.nodes[i2][j+1].y,0.0);
 
                        }
                }
index fa26bbaa6e120cb7e99559bc5bd3894dd396e971..6b172ba8603d2b0b1e2403e1020cf2934864cf3e 100644 (file)
@@ -123,15 +123,15 @@ public:
        int m_type;
 
        KX_IpoActuator(SCA_IObject* gameobj,
-                                  const STR_String& propname,
-                                  const STR_String& framePropname,
-                                  float starttime,
-                                  float endtime,
-                                  bool recurse,
-                                  int acttype,
-                                  bool ipo_as_force, 
-                                  bool ipo_add,
-                                  bool ipo_local);
+                      const STR_String& propname,
+                      const STR_String& framePropname,
+                      float starttime,
+                      float endtime,
+                      bool recurse,
+                      int acttype,
+                      bool ipo_as_force,
+                      bool ipo_add,
+                      bool ipo_local);
        virtual ~KX_IpoActuator() {};
 
        virtual CValue* GetReplica() {
index 277af87f9f2517750f8e760effca242f2c09b8e3..43bf6bc5302bcc4c3c0f857a8e990d65e892226c 100644 (file)
@@ -121,7 +121,7 @@ class KX_MouseFocusSensor : public SCA_MouseSensor
        /**
         * The focus mode. 1 for handling focus, 0 for not handling, 2 for focus on any object
        */
-        int    m_focusmode;
+       int     m_focusmode;
 
        /**
         * Flags whether the previous test showed a mouse-over.
index 26adcb993b8db8af3c952d1337c9914e5c517524..a81d621e8fcc54d90354c1531d9914b24ddceeac 100644 (file)
@@ -49,12 +49,12 @@ protected:
        KX_ClientObjectInfo*    m_client_info;
 public:
        KX_NearSensor(class SCA_EventManager* eventmgr,
-                       class KX_GameObject* gameobj,
-                       float margin,
-                       float resetmargin,
-                       bool bFindMaterial,
-                       const STR_String& touchedpropname,
-                        PHY_IPhysicsController*        ctrl);
+                     class KX_GameObject* gameobj,
+                     float margin,
+                     float resetmargin,
+                     bool bFindMaterial,
+                     const STR_String& touchedpropname,
+                     PHY_IPhysicsController*   ctrl);
 /*
 public:
        KX_NearSensor(class SCA_EventManager* eventmgr,
index 9b8f7f27d80b058fa9caa770036e2398909fd964..20743504dad6d4d7188dd24ad469b220e0ac8642 100644 (file)
@@ -1247,9 +1247,10 @@ KX_Camera* KX_Scene::FindCamera(KX_Camera* cam)
 {
        list<KX_Camera*>::iterator it = m_cameras.begin();
 
-       while ( (it != m_cameras.end()) 
-                       && ((*it) != cam) ) {
-         it++;
+       while ( (it != m_cameras.end())
+               && ((*it) != cam) )
+       {
+               it++;
        }
 
        return ((it == m_cameras.end()) ? NULL : (*it));
@@ -1260,9 +1261,10 @@ KX_Camera* KX_Scene::FindCamera(STR_String& name)
 {
        list<KX_Camera*>::iterator it = m_cameras.begin();
 
-       while ( (it != m_cameras.end()) 
-                       && ((*it)->GetName() != name) ) {
-         it++;
+       while ( (it != m_cameras.end())
+               && ((*it)->GetName() != name) )
+       {
+               it++;
        }
 
        return ((it == m_cameras.end()) ? NULL : (*it));
index 76bdd36a70f53115753168e0498d7622fbe0c5ed..22aa781ebc28e68488b9396122e031205cd4710c 100644 (file)
@@ -2130,8 +2130,8 @@ btCollisionShape* CcdShapeConstructionInfo::CreateBulletShape(btScalar margin, b
                {
                        compoundShape = new btCompoundShape();
                        for (std::vector<CcdShapeConstructionInfo*>::iterator sit = m_shapeArray.begin();
-                                sit != m_shapeArray.end();
-                                sit++)
+                            sit != m_shapeArray.end();
+                            sit++)
                        {
                                collisionShape = (*sit)->CreateBulletShape(margin, useGimpact, useBvh);
                                if (collisionShape)
@@ -2156,8 +2156,8 @@ void CcdShapeConstructionInfo::AddShape(CcdShapeConstructionInfo* shapeInfo)
 CcdShapeConstructionInfo::~CcdShapeConstructionInfo()
 {
        for (std::vector<CcdShapeConstructionInfo*>::iterator sit = m_shapeArray.begin();
-                sit != m_shapeArray.end();
-                sit++)
+            sit != m_shapeArray.end();
+            sit++)
        {
                (*sit)->Release();
        }
index 4dce002150989c63a425c8ba36a19970e2be6448..32801a2c38e7eef90e56f53085b89a008c70608e 100644 (file)
@@ -79,7 +79,7 @@ extern PyTypeObject TextureType;
 
 // load texture
 void loadTexture (unsigned int texId, unsigned int * texture, short * size,
-                                 bool mipmap = false);
+                  bool mipmap = false);
 
 // get material
 RAS_IPolyMaterial * getMaterial (PyObject *obj, short matID);