mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 18:48:44 +08:00
[cpp] Call setupPose() in PosedGeneric constructor, to mirror what we do in Java.
This commit is contained in:
parent
ed5bb5b566
commit
ddf4c50954
@ -63,6 +63,8 @@ namespace spine {
|
||||
friend class Skeleton;
|
||||
friend class Bone;
|
||||
|
||||
RTTI_DECL
|
||||
|
||||
public:
|
||||
BonePose();
|
||||
virtual ~BonePose();
|
||||
|
||||
@ -31,7 +31,6 @@
|
||||
#define Spine_Posed_h
|
||||
|
||||
#include <spine/SpineObject.h>
|
||||
#include <type_traits>
|
||||
|
||||
namespace spine {
|
||||
class SP_API Posed {
|
||||
@ -87,6 +86,7 @@ namespace spine {
|
||||
|
||||
public:
|
||||
PosedGeneric(D &data) : _data(data), _pose(), _constrained(), _applied(&_pose) {
|
||||
setupPose();
|
||||
}
|
||||
|
||||
virtual ~PosedGeneric() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user