You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
632 B
31 lines
632 B
//
|
|
// Created by liangshuochen on 12/06/2017.
|
|
//
|
|
|
|
#include "TransformObject.h"
|
|
|
|
DRAGONBONES_NAMESPACE_BEGIN
|
|
|
|
Matrix TransformObject::_helpMatrix;
|
|
Transform TransformObject::_helpTransform;
|
|
Point TransformObject::_helpPoint;
|
|
|
|
void TransformObject::_onClear() {
|
|
globalTransformMatrix.identity();
|
|
global.identity();
|
|
offset.identity();
|
|
origin = nullptr;
|
|
userData = nullptr;
|
|
|
|
_globalDirty = false;
|
|
_armature = nullptr;
|
|
}
|
|
|
|
void TransformObject::updateGlobalTransform() {
|
|
if (_globalDirty) {
|
|
_globalDirty = false;
|
|
global.fromMatrix(globalTransformMatrix);
|
|
}
|
|
}
|
|
|
|
DRAGONBONES_NAMESPACE_END
|
|
|