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
28 lines
406 B
C++
28 lines
406 B
C++
//
|
|
// Created by liangshuochen on 09/06/2017.
|
|
//
|
|
|
|
#include "ConstraintData.h"
|
|
|
|
DRAGONBONES_NAMESPACE_BEGIN
|
|
|
|
void ConstraintData::_onClear()
|
|
{
|
|
order = 0;
|
|
name = "";
|
|
target = nullptr;
|
|
root = nullptr;
|
|
bone = nullptr;
|
|
}
|
|
|
|
void IKConstraintData::_onClear()
|
|
{
|
|
ConstraintData::_onClear();
|
|
|
|
scaleEnabled = false;
|
|
bendPositive = false;
|
|
weight = 1.0f;
|
|
}
|
|
|
|
DRAGONBONES_NAMESPACE_END
|