Пример #1
0
        /**
         * @private
         */
        protected override void _onClear()
        {
            base._onClear();

            inheritTranslation = false;
            inheritRotation    = false;
            inheritScale       = false;
            ikBendPositive     = false;
            length             = 0.0f;
            ikWeight           = 0.0f;

            _transformDirty   = BoneTransformDirty.None;
            _visible          = true;
            _cachedFrameIndex = -1;
            _ikChain          = 0;
            _ikChainIndex     = 0;
            _updateState      = -1;
            _blendLayer       = 0;
            _blendLeftWeight  = 0.0f;
            _blendTotalWeight = 0.0f;
            _animationPose.Identity();
            _bones.Clear();
            _slots.Clear();
            _boneData           = null;
            _ik                 = null;
            _cachedFrameIndices = null;
        }
        protected override void _onClear()
        {
            base._onClear();

            bone = null;
            originTransform.Identity();
        }
Пример #3
0
        protected override void _onClear()
        {
            base._onClear();

            tweenScale  = false;
            tweenRotate = 0.0f;
            transform.Identity();
        }
        /**
         * @inheritDoc
         */
        protected override void _onClear()
        {
            userData = null;
            name     = null;
            global.Identity();
            origin.Identity();
            offset.Identity();
            globalTransformMatrix.Identity();

            _armature = null;
            _parent   = null;
        }
 /**
  * @inheritDoc
  */
 protected override void _onClear()
 {
     inheritTranslation = false;
     inheritRotation    = false;
     inheritScale       = false;
     bendPositive       = false;
     chain      = 0;
     chainIndex = 0;
     weight     = 0.0f;
     length     = 0.0f;
     name       = null;
     parent     = null;
     ik         = null;
     transform.Identity();
 }
Пример #6
0
        override protected void _onClear()
        {
            base._onClear();

            bone = null;

            _transformDirty = false;
            _tweenTransform = TweenType.None;
            _tweenRotate    = TweenType.None;
            _tweenScale     = TweenType.None;
            _transform.Identity();
            _durationTransform.Identity();
            _boneTransform     = null;
            _originalTransform = null;
        }
Пример #7
0
 static int Identity(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         DragonBones.Transform obj = (DragonBones.Transform)ToLua.CheckObject(L, 1, typeof(DragonBones.Transform));
         DragonBones.Transform o   = obj.Identity();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
        /**
         * @inheritDoc
         */
        protected override void _onClear()
        {
            isRelativePivot = false;
            type            = DisplayType.Image;
            name            = null;
            texture         = null;
            armature        = null;

            if (mesh != null)
            {
                mesh.ReturnToPool();
                mesh = null;
            }

            pivot.Clear();
            transform.Identity();
        }
Пример #9
0
        protected override void _onClear()
        {
            if (boundingBox != null)
            {
                boundingBox.ReturnToPool();
            }

            isRelativePivot = false;
            type            = DisplayType.Image;
            name            = null;
            path            = null;
            share           = null;
            pivot.Clear();
            transform.Identity();
            texture     = null;
            armature    = null;
            mesh        = null;
            boundingBox = null;
        }
Пример #10
0
        /**
         * @private
         */
        protected override void _onClear()
        {
            if (userData != null)
            {
                userData.ReturnToPool();
            }

            inheritTranslation = false;
            inheritRotation    = false;
            inheritScale       = false;
            bendPositive       = false;
            chain      = 0;
            chainIndex = 0;
            weight     = 0.0f;
            length     = 0.0f;
            name       = null;
            transform.Identity();
            parent   = null;
            ik       = null;
            userData = null;
        }
Пример #11
0
        /**
         * @inheritDoc
         */
        protected override void _onClear()
        {
            base._onClear();

            inheritTranslation = false;
            inheritRotation    = false;
            inheritScale       = false;
            ikBendPositive     = false;
            ikWeight           = 0.0f;
            length             = 0.0f;

            _transformDirty  = BoneTransformDirty.All; // Update
            _blendIndex      = -1;
            _cacheFrameIndex = -1;
            _cacheFrames     = null;
            _animationPose.Identity();

            _visible      = true;
            _ikChain      = 0;
            _ikChainIndex = 0;
            _ik           = null;
            _bones.Clear();
            _slots.Clear();
        }