Cleanup: style
authorCampbell Barton <ideasman42@gmail.com>
Sat, 8 Dec 2018 04:01:47 +0000 (15:01 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 8 Dec 2018 04:01:47 +0000 (15:01 +1100)
release/scripts/startup/bl_ui/space_view3d.py
source/blender/blenlib/intern/system.c
source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc
source/blender/modifiers/intern/MOD_particleinstance.c

index 6fef07c8284c0386aa11576da3b5eeaaeb270f29..4fc247cc8f548b9099b1b5c59411120fea06134f 100644 (file)
@@ -350,7 +350,7 @@ class VIEW3D_MT_editor_menus(Menu):
                 layout.menu("VIEW3D_MT_edit_mesh_edges")
                 layout.menu("VIEW3D_MT_edit_mesh_faces")
                 layout.menu("VIEW3D_MT_uv_map", text="UV")
-            elif mode_string in ['EDIT_CURVE', 'EDIT_SURFACE']:
+            elif mode_string in {'EDIT_CURVE', 'EDIT_SURFACE'}:
                 layout.menu("VIEW3D_MT_edit_curve_ctrlpoints")
                 layout.menu("VIEW3D_MT_edit_curve_segments")
 
@@ -3319,7 +3319,7 @@ class VIEW3D_MT_edit_curve_ctrlpoints(Menu):
 
         edit_object = context.edit_object
 
-        if edit_object.type in ['CURVE', 'SURFACE']:
+        if edit_object.type in {'CURVE', 'SURFACE'}:
             layout.operator("curve.extrude_move")
 
             layout.separator()
index 5ff1d4ed710bdfc14f980be00ebc9bf608056681..c1a7846c4b17334856a6ba9794bd453f355dc7ff 100644 (file)
@@ -181,14 +181,14 @@ char *BLI_cpu_brand_string(void)
 void BLI_hostname_get(char *buffer, size_t bufsize)
 {
 #ifndef WIN32
-       if (gethostname(buffer, bufsize-1) < 0) {
+       if (gethostname(buffer, bufsize - 1) < 0) {
                BLI_strncpy(buffer, "-unknown-", bufsize);
        }
        /* When gethostname() truncates, it doesn't guarantee the trailing \0. */
        buffer[bufsize - 1] = '\0';
 #else
        DWORD bufsize_inout = bufsize;
-       if(!GetComputerName(buffer, &bufsize_inout)) {
+       if (!GetComputerName(buffer, &bufsize_inout)) {
                strncpy(buffer, "-unknown-", bufsize);
        }
 #endif
index ef021c098241a1ef0e37b2c014e877790829fa2a..efedf847515e61985ca5cfce41c3b164cc87d368 100644 (file)
@@ -519,7 +519,7 @@ void DepsgraphRelationBuilder::build_rig(Object *object)
                        add_relation(bone_segments_key,
                                     pose_done_key,
                                     "PoseEval Result-Bone Link",
-                                                DEPSREL_FLAG_GODMODE);
+                                    DEPSREL_FLAG_GODMODE);
                        add_relation(bone_segments_key,
                                     pose_cleanup_key,
                                     "Cleanup dependency");
index db552fa2122bacba3c02bb9f04af7596a2050a6f..0a5b34c90eed1fcba077a245596fb147a6ec7c13 100644 (file)
@@ -499,7 +499,7 @@ static Mesh *applyModifier(
                                        const int ml_index = (ml - mloop);
                                        if (mloopcols_index != NULL) {
                                                const int part_index = vert_part_index[ml->v];
-                                               store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / (float)(psys->totpart-1));
+                                               store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / (float)(psys->totpart - 1));
                                        }
                                        if (mloopcols_value != NULL) {
                                                const float part_value = vert_part_value[ml->v];