Cleanup: trailing space

This commit is contained in:
Campbell Barton 2020-10-02 09:48:41 +10:00
parent e2e31b9bac
commit 28ebe827e6
25 changed files with 31 additions and 32 deletions

View File

@ -766,4 +766,3 @@ if(WITH_POTRACE)
set(POTRACE_LIBRARIES ${LIBDIR}/potrace/lib/potrace.lib)
set(POTRACE_FOUND On)
endif()

View File

@ -677,7 +677,7 @@ Here are some general hints to avoid running into these problems:
Undo/Redo
---------
For safety, you should assume that undo and redo always invalidates all :class:`bpy.types.ID`
For safety, you should assume that undo and redo always invalidates all :class:`bpy.types.ID`
instances (Object, Scene, Mesh, Light, etc.), as weel obviously as all of their sub-data.
This example shows how you can tell undo changes the memory locations:
@ -701,7 +701,7 @@ interactively by the user is the only way to make sure that the script doesn't b
Modern undo/redo system does not systematically invalidate all pointers anymore.
Some data (in fact, most data, in typical cases), which were detected as unchanged for a
particular history step, may remain unchanged and hence their pointers may remain valid.
Be aware that if you want to take advantage of this behavior for some reason, there is no
guarantee of any kind that it will be safe and consistent. Use it at your own risk.

View File

@ -663,7 +663,7 @@ def brush_settings(layout, context, brush, popover=False):
if brush.cloth_simulation_area_type != 'GLOBAL':
layout.prop(brush, "cloth_sim_limit")
layout.prop(brush, "cloth_sim_falloff")
if brush.cloth_simulation_area_type == 'LOCAL':
layout.prop(brush, "use_cloth_pin_simulation_boundary")

View File

@ -1385,7 +1385,7 @@ class PHYSICS_PT_viewport_display_debug(PhysicButtonsPanel, Panel):
if not domain.use_guide and domain.vector_field == 'GUIDE_VELOCITY':
note = layout.split()
note.label(icon='INFO', text="Enable Guides first! Defaulting to Fluid Velocity")
if domain.vector_display_type == 'MAC':
sub = col.column(heading="MAC Grid")
sub.prop(domain, "vector_show_mac_x")
@ -1393,7 +1393,7 @@ class PHYSICS_PT_viewport_display_debug(PhysicButtonsPanel, Panel):
sub.prop(domain, "vector_show_mac_z")
else:
col.prop(domain, "vector_scale_with_magnitude")
col.prop(domain, "vector_field")
col.prop(domain, "vector_scale")

View File

@ -880,12 +880,12 @@ TEST(boolean_polymesh, CubePlane)
1 -1 1
1 1 -1
1 1 1
0 1 3 2
4 5 7 6
6 7 11 10
10 11 9 8
8 9 5 4
6 10 8 4
0 1 3 2
4 5 7 6
6 7 11 10
10 11 9 8
8 9 5 4
6 10 8 4
11 7 5 9
)";

View File

@ -74,4 +74,4 @@ void main()
final_color.a *= alpha;
fragColor = final_color;
}
}

View File

@ -358,4 +358,4 @@ TEST_F(DrawTest, eevee_glsl_shaders_static)
EEVEE_shaders_free();
}
} // namespace blender::draw
} // namespace blender::draw

View File

@ -38,4 +38,4 @@ bool GPU_debug_group_match(const char *ref);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -107,4 +107,4 @@ static inline const Context *unwrap(const GPUContext *ctx)
return reinterpret_cast<const Context *>(ctx);
}
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -32,4 +32,4 @@ namespace blender::gpu {
typedef Vector<StringRef> DebugStack;
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -75,4 +75,4 @@ class Immediate {
} // namespace blender::gpu
void immActivate(void);
void immDeactivate(void);
void immDeactivate(void);

View File

@ -115,4 +115,4 @@ bool GPU_type_matches(eGPUDeviceType device, eGPUOSType os, eGPUDriverType drive
return (GPG.device & device) && (GPG.os & os) && (GPG.driver & driver);
}
/** \} */
/** \} */

View File

@ -50,4 +50,4 @@ class GPUPlatformGlobal {
extern GPUPlatformGlobal GPG;
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -56,4 +56,4 @@ class QueryPool {
virtual void get_occlusion_result(MutableSpan<uint32_t> r_values) = 0;
};
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -49,4 +49,4 @@ uint gpu_select_query_end(void);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -331,4 +331,4 @@ void GPU_vertbuf_update_sub(GPUVertBuf *verts, uint start, uint len, void *data)
unwrap(verts)->update_sub(start, len, data);
}
/** \} */
/** \} */

View File

@ -162,4 +162,4 @@ void init_debug_layer(void)
#undef DEBUG_WRAP
}
} // namespace blender::gpu::debug
} // namespace blender::gpu::debug

View File

@ -181,4 +181,4 @@ void GLImmediate::end(void)
/** \} */
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -78,4 +78,4 @@ class GLImmediate : public Immediate {
};
};
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -59,4 +59,4 @@ void GLIndexBuf::bind(void)
}
}
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -124,4 +124,4 @@ void GLUniformBuf::unbind(void)
/** \} */
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -111,4 +111,4 @@ void GLVertBuf::update_sub(uint start, uint len, void *data)
glBufferSubData(GL_ARRAY_BUFFER, start, len, data);
}
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -28,4 +28,4 @@ void GPUTest::TearDown()
GHOST_DisposeSystem(ghost_system);
}
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -24,4 +24,4 @@ class GPUTest : public ::testing::Test {
void TearDown() override;
};
} // namespace blender::gpu
} // namespace blender::gpu

View File

@ -32,7 +32,7 @@ class FCurveEvaluationTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.testdir = args.testdir
def setUp(self):
self.assertTrue(self.testdir.exists(),
'Test dir %s should exist' % self.testdir)