Fix a bunch of warnings
This commit is contained in:
@@ -43,6 +43,9 @@ namespace Nz
|
||||
}
|
||||
|
||||
Node::Node(Node&& node) noexcept :
|
||||
OnNodeInvalidation(std::move(node.OnNodeInvalidation)),
|
||||
OnNodeNewParent(std::move(node.OnNodeNewParent)),
|
||||
OnNodeRelease(std::move(node.OnNodeRelease)),
|
||||
m_childs(std::move(node.m_childs)),
|
||||
m_initialRotation(node.m_initialRotation),
|
||||
m_rotation(node.m_rotation),
|
||||
@@ -55,10 +58,7 @@ namespace Nz
|
||||
m_inheritPosition(node.m_inheritPosition),
|
||||
m_inheritRotation(node.m_inheritRotation),
|
||||
m_inheritScale(node.m_inheritScale),
|
||||
m_transformMatrixUpdated(false),
|
||||
OnNodeInvalidation(std::move(node.OnNodeInvalidation)),
|
||||
OnNodeNewParent(std::move(node.OnNodeNewParent)),
|
||||
OnNodeRelease(std::move(node.OnNodeRelease))
|
||||
m_transformMatrixUpdated(false)
|
||||
{
|
||||
if (m_parent)
|
||||
{
|
||||
|
||||
@@ -39,8 +39,6 @@ namespace Nz
|
||||
SkeletonComponent& entitySkeleton = m_registry.get<SkeletonComponent>(entity);
|
||||
|
||||
// TODO: When attaching for the first time, set the skeleton to the position of the node before attaching the node
|
||||
Node* skeletonRoot = entitySkeleton.GetRootNode();
|
||||
|
||||
entityNode.SetParent(entitySkeleton.GetRootNode());
|
||||
});
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace Nz
|
||||
|
||||
VertexBuffer::VertexBuffer(std::shared_ptr<const VertexDeclaration> vertexDeclaration, UInt32 vertexCount, BufferUsageFlags usage, const BufferFactory& bufferFactory, const void* initialData) :
|
||||
m_vertexDeclaration(std::move(vertexDeclaration)),
|
||||
m_startOffset(0),
|
||||
m_vertexCount(vertexCount)
|
||||
m_vertexCount(vertexCount),
|
||||
m_startOffset(0)
|
||||
{
|
||||
NazaraAssert(m_vertexDeclaration, "invalid vertex declaration");
|
||||
NazaraAssert(vertexCount > 0, "invalid vertex count");
|
||||
|
||||
Reference in New Issue
Block a user