mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-05 10:16:54 +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 Skeleton;
|
||||||
friend class Bone;
|
friend class Bone;
|
||||||
|
|
||||||
|
RTTI_DECL
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BonePose();
|
BonePose();
|
||||||
virtual ~BonePose();
|
virtual ~BonePose();
|
||||||
|
|||||||
@ -31,7 +31,6 @@
|
|||||||
#define Spine_Posed_h
|
#define Spine_Posed_h
|
||||||
|
|
||||||
#include <spine/SpineObject.h>
|
#include <spine/SpineObject.h>
|
||||||
#include <type_traits>
|
|
||||||
|
|
||||||
namespace spine {
|
namespace spine {
|
||||||
class SP_API Posed {
|
class SP_API Posed {
|
||||||
@ -87,6 +86,7 @@ namespace spine {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
PosedGeneric(D &data) : _data(data), _pose(), _constrained(), _applied(&_pose) {
|
PosedGeneric(D &data) : _data(data), _pose(), _constrained(), _applied(&_pose) {
|
||||||
|
setupPose();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~PosedGeneric() {
|
virtual ~PosedGeneric() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user