1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Replace _IRR_DEBUG_BREAK_IF with assertions

This commit is contained in:
Lars Mueller 2025-04-04 01:26:02 +02:00 committed by Lars Müller
parent 2f464843cb
commit 5f1ff453c9
22 changed files with 96 additions and 91 deletions

View file

@ -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);
}