[cpp] Formatting

This commit is contained in:
Mario Zechner 2024-01-16 12:42:22 +01:00
parent 62080c6c8b
commit d03f535ed8
24 changed files with 682 additions and 687 deletions

View File

@ -164,4 +164,3 @@ bool BoneData::isVisible() {
void BoneData::setVisible(bool inValue) { void BoneData::setVisible(bool inValue) {
this->_visible = inValue; this->_visible = inValue;
} }

View File

@ -155,7 +155,6 @@ float CurveTimeline1::getRelativeValue(float time, float alpha, MixBlend blend,
break; break;
} }
return current + value * alpha; return current + value * alpha;
} }
float CurveTimeline1::getAbsoluteValue(float time, float alpha, MixBlend blend, float current, float setup) { float CurveTimeline1::getAbsoluteValue(float time, float alpha, MixBlend blend, float current, float setup) {

View File

@ -94,7 +94,6 @@ void PathConstraint::update(Physics) {
float x = setupLength * bone._a; float x = setupLength * bone._a;
float y = setupLength * bone._c; float y = setupLength * bone._c;
_lengths[i] = MathUtil::sqrt(x * x + y * y); _lengths[i] = MathUtil::sqrt(x * x + y * y);
} }
} }
for (size_t i = 1; i < spacesCount; ++i) { for (size_t i = 1; i < spacesCount; ++i) {

View File

@ -42,8 +42,7 @@ PhysicsConstraintData::PhysicsConstraintData(const String &name) : ConstraintDat
_x(0), _y(0), _rotate(0), _scaleX(0), _shearX(0), _x(0), _y(0), _rotate(0), _scaleX(0), _shearX(0),
_step(0), _inertia(0), _strength(0), _damping(0), _massInverse(0), _wind(0), _gravity(0), _mix(0), _step(0), _inertia(0), _strength(0), _damping(0), _massInverse(0), _wind(0), _gravity(0), _mix(0),
_inertiaGlobal(false), _strengthGlobal(false), _dampingGlobal(false), _massGlobal(false), _inertiaGlobal(false), _strengthGlobal(false), _dampingGlobal(false), _massGlobal(false),
_windGlobal(false), _gravityGlobal(false), _mixGlobal(false) _windGlobal(false), _gravityGlobal(false), _mixGlobal(false) {
{
} }

View File

@ -711,4 +711,3 @@ void Skeleton::setTime(float time) {
void Skeleton::update(float delta) { void Skeleton::update(float delta) {
_time += delta; _time += delta;
} }