mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 18:05:22 +02:00
Replace _IRR_DEBUG_BREAK_IF
with assertions
This commit is contained in:
committed by
Lars Müller
parent
2f464843cb
commit
5f1ff453c9
@@ -9,6 +9,7 @@
|
||||
#include "SSkinMeshBuffer.h"
|
||||
#include "os.h"
|
||||
#include <vector>
|
||||
#include <cassert>
|
||||
|
||||
namespace irr
|
||||
{
|
||||
@@ -620,19 +621,19 @@ SkinnedMesh::SJoint *SkinnedMeshBuilder::addJoint(SJoint *parent)
|
||||
|
||||
void SkinnedMeshBuilder::addPositionKey(SJoint *joint, f32 frame, core::vector3df pos)
|
||||
{
|
||||
_IRR_DEBUG_BREAK_IF(!joint);
|
||||
assert(joint);
|
||||
joint->keys.position.pushBack(frame, pos);
|
||||
}
|
||||
|
||||
void SkinnedMeshBuilder::addScaleKey(SJoint *joint, f32 frame, core::vector3df scale)
|
||||
{
|
||||
_IRR_DEBUG_BREAK_IF(!joint);
|
||||
assert(joint);
|
||||
joint->keys.scale.pushBack(frame, scale);
|
||||
}
|
||||
|
||||
void SkinnedMeshBuilder::addRotationKey(SJoint *joint, f32 frame, core::quaternion rot)
|
||||
{
|
||||
_IRR_DEBUG_BREAK_IF(!joint);
|
||||
assert(joint);
|
||||
joint->keys.rotation.pushBack(frame, rot);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user