[cpp] Make Constraint and Posed pure

This commit is contained in:
Mario Zechner 2025-07-24 12:48:34 +02:00
parent 8b135f18bb
commit 60cc9f0e20
2 changed files with 7 additions and 5 deletions

View File

@ -52,9 +52,7 @@ namespace spine {
virtual void sort(Skeleton &skeleton) = 0;
virtual bool isSourceActive() {
return true;
}
virtual bool isSourceActive() = 0;
// Inherited from Update
virtual void update(Skeleton &skeleton, Physics physics) override = 0;
@ -80,6 +78,10 @@ namespace spine {
return PosedGeneric<D, P, P>::getData();
}
virtual bool isSourceActive() override {
return true;
}
protected:
virtual void pose() override {
PosedGeneric<D, P, P>::pose();

View File

@ -44,7 +44,7 @@ namespace spine {
virtual void resetConstrained() = 0;
virtual bool isPoseEqualToApplied() const = 0;
virtual bool isPoseEqualToApplied() = 0;
protected:
virtual void setupPose() = 0;
@ -115,7 +115,7 @@ namespace spine {
_applied = &_constrained;
}
virtual bool isPoseEqualToApplied() const override {
virtual bool isPoseEqualToApplied() override {
return _applied == &_pose;
}