Add end-of-line spaces checker
This commit is contained in:
@@ -109,7 +109,7 @@ namespace Nz
|
||||
NazaraUnused(parameters);
|
||||
|
||||
Image tempImage(image); //< We're using COW here to prevent Image copy unless required
|
||||
|
||||
|
||||
int componentCount = ConvertToIntegerFormat(tempImage);
|
||||
if (componentCount == 0)
|
||||
{
|
||||
@@ -229,7 +229,7 @@ namespace Nz
|
||||
{ ".png", &SavePNG },
|
||||
{ ".tga", &SaveTGA }
|
||||
});
|
||||
|
||||
|
||||
bool FormatQuerier(std::string_view extension)
|
||||
{
|
||||
return s_formatHandlers.find(extension) != s_formatHandlers.end();
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Nz
|
||||
|
||||
entitySkeleton.SetSkeletonParent(&entityNode);
|
||||
});
|
||||
|
||||
|
||||
m_skeletonConstructObserver.each([&](entt::entity entity)
|
||||
{
|
||||
NodeComponent& entityNode = m_registry.get<NodeComponent>(entity);
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace Nz
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout::XY_Color]->GetStride() == sizeof(VertexStruct_XY_Color), "Invalid stride for declaration VertexLayout::XY_Color");
|
||||
|
||||
|
||||
// VertexLayout::XY_UV : VertexStruct_XY_UV
|
||||
s_declarations[VertexLayout::XY_UV] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
@@ -292,7 +292,7 @@ namespace Nz
|
||||
});
|
||||
|
||||
NazaraAssert(s_declarations[VertexLayout::XYZ_Normal_UV_Tangent_Skinning]->GetStride() == sizeof(VertexStruct_XYZ_Normal_UV_Tangent_Skinning), "Invalid stride for declaration VertexLayout::XYZ_Normal_UV_Tangent_Skinning");
|
||||
|
||||
|
||||
// VertexLayout::XYZ_SizeRot : VertexStruct_XYZ_SizeRot
|
||||
s_declarations[VertexLayout::UV_SizeSinCos] = NewDeclaration(VertexInputRate::Vertex, {
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Nz
|
||||
ErrorFlags flags(ErrorMode::ThrowException);
|
||||
m_mapper.Map(vertexBuffer, 0, vertexBuffer.GetVertexCount());
|
||||
}
|
||||
|
||||
|
||||
VertexMapper::~VertexMapper() = default;
|
||||
|
||||
void VertexMapper::Unmap()
|
||||
|
||||
Reference in New Issue
Block a user