mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 19:12:40 +08:00
c9c6634e7e
* v2.0 skeleton optimize * v2.0 skeleton offical source file * Rename jsbDragonBones to dragonbones Rename jsbSpine to spine Rename editor to middleware Rename EditorManager to MiddlewareManager * Rename Macro.h to MiddlewareMacro to avoid duplication of name * Middleware update by js * recover other ini generate * Update cocos2dx-file.json * createArrayBuffer support null point * Rename MiddlewareMacro * skeleton windows 工程 * add checkspace before write buffer * add math include * modify dragonBones to dragonbones * modify dragonBones to dragonbones * modify dragonBones to dragonbones * remove useless code * Change copyright time
35 lines
636 B
C++
35 lines
636 B
C++
//
|
|
// 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
|