Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Wed, 2 Sep 2015 08:39:19 +0000 (18:39 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 2 Sep 2015 08:39:19 +0000 (18:39 +1000)
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/space_file/filelist.c
source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp
source/blender/nodes/shader/nodes/node_shader_math.c
source/blender/windowmanager/intern/wm_operators.c
source/gameengine/Ketsji/KX_SteeringActuator.cpp

index ef9acb9c290baf90bd70e4c47477112db6084175..2a1ae891e29554f90b5a6a65834285f9ba053fba 100644 (file)
@@ -3667,7 +3667,7 @@ static void project_paint_prepare_all_faces(
                                /* backface culls individual triangles but mask normal will use polygon */
                                if (ps->do_backfacecull) {
                                        if (ps->do_mask_normal) {
-                                               if (prev_poly != lt->poly) {\
+                                               if (prev_poly != lt->poly) {
                                                        int iloop;
                                                        bool culled = true;
                                                        const MPoly *poly = ps->dm_mpoly + lt->poly;
index 0a9bb40a7cddc7c256e24d11c55bec4c1c30860d..f53d3781d9084c63f24f441c8a62bd6ff1a4d72d 100644 (file)
@@ -1507,7 +1507,7 @@ int filelist_file_findpath(struct FileList *filelist, const char *filename)
        }
 
        /* XXX TODO Cache could probably use a ghash on paths too? Not really urgent though.
-     *          This is only used to find again renamed entry, annoying but looks hairy to get rid of it currently. */
+        *          This is only used to find again renamed entry, annoying but looks hairy to get rid of it currently. */
 
        for (fidx = 0; fidx < filelist->filelist.nbr_entries_filtered; fidx++) {
                FileListInternEntry *entry = filelist->filelist_intern.filtered[fidx];
@@ -2472,7 +2472,7 @@ static void filelist_readjob_do(
                         * things would crash way before we overflow that counter!
                         * Using an atomic operation to avoid having to lock thread...
                         * Note that we do not really need this here currently, since there is a single listing thread, but better
-             * remain consistent about threading! */
+                        * remain consistent about threading! */
                        *((uint32_t *)entry->uuid) = atomic_add_uint32((uint32_t *)filelist->filelist_intern.curr_uuid, 1);
 
                        BLI_path_rel(dir, root);
index 9f0660baa9b1ac3de1867c651964d6a04a44d6fd..446587c23886f1923e0dde6092c1521ae6fb8e06 100644 (file)
@@ -220,8 +220,8 @@ static PyGetSetDef BPy_CurvePoint_getseters[] = {
                                  (char *)CurvePoint_first_svertex_doc, NULL},
        {(char *)"second_svertex", (getter)CurvePoint_second_svertex_get, (setter)CurvePoint_second_svertex_set,
                                   (char *)CurvePoint_second_svertex_doc, NULL},
-    {(char *)"fedge", (getter)CurvePoint_fedge_get, NULL,
-                               CurvePoint_fedge_doc, NULL},
+       {(char *)"fedge", (getter)CurvePoint_fedge_get, NULL,
+                                  CurvePoint_fedge_doc, NULL},
        {(char *)"t2d", (getter)CurvePoint_t2d_get, (setter)CurvePoint_t2d_set, (char *)CurvePoint_t2d_doc, NULL},
        {NULL, NULL, NULL, NULL, NULL}  /* Sentinel */
 };
index be2e3dcd3119b42332570a2b1ec26cb4db03f0ea..2a1e936570d4e5549f70a40548a84a6c54dba7e6 100644 (file)
@@ -230,10 +230,12 @@ static void node_shader_exec_math(void *UNUSED(data), int UNUSED(thread), bNode
 
 static int gpu_shader_math(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 {
-       static const char *names[] = {"math_add", "math_subtract", "math_multiply",
-                                         "math_divide", "math_sine", "math_cosine", "math_tangent", "math_asin",
-                                         "math_acos", "math_atan", "math_pow", "math_log", "math_min", "math_max",
-                                  "math_round", "math_less_than", "math_greater_than", "math_modulo", "math_abs"};
+       static const char *names[] = {
+           "math_add", "math_subtract", "math_multiply",
+           "math_divide", "math_sine", "math_cosine", "math_tangent", "math_asin",
+           "math_acos", "math_atan", "math_pow", "math_log", "math_min", "math_max",
+           "math_round", "math_less_than", "math_greater_than", "math_modulo", "math_abs",
+       };
 
        switch (node->custom1) {
                case NODE_MATH_ADD:
index 3115b4f7512280c1d954c87a203b7906e08c3ca8..9c5e7fc069a3e557cc2f048d5be8aee84499b6a8 100644 (file)
@@ -4974,7 +4974,7 @@ static void WM_OT_previews_ensure(wmOperatorType *ot)
 static EnumPropertyItem preview_id_type_items[] = {
     {FILTER_ID_SCE, "SCENE", 0, "Scenes", ""},
     {FILTER_ID_GR, "GROUP", 0, "Groups", ""},
-       {FILTER_ID_OB, "OBJECT", 0, "Objects", ""},
+    {FILTER_ID_OB, "OBJECT", 0, "Objects", ""},
     {FILTER_ID_MA, "MATERIAL", 0, "Materials", ""},
     {FILTER_ID_LA, "LAMP", 0, "Lamps", ""},
     {FILTER_ID_WO, "WORLD", 0, "Worlds", ""},
index 799d214275cde856847f17dd74df53c11ecb4874..cd2cd2bae0bee925f7e82b4f30805a7f58134d9f 100644 (file)
@@ -610,8 +610,7 @@ int KX_SteeringActuator::pyattr_set_navmesh(void *self, const struct KX_PYATTRIB
        if (!ConvertPythonToGameObject(value, &gameobj, true, "actuator.object = value: KX_SteeringActuator"))
                return PY_SET_ATTR_FAIL; // ConvertPythonToGameObject sets the error
 
-    if (dynamic_cast<KX_NavMeshObject *>(gameobj) == NULL)
-       {
+       if (dynamic_cast<KX_NavMeshObject *>(gameobj) == NULL) {
                PyErr_Format(PyExc_TypeError, "KX_NavMeshObject is expected");
                return PY_SET_ATTR_FAIL;
        }