ywywdh / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

MD2.getAnimationChannels always returns ["all"] #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
call .getAnimationChannels of any MD2 with some animations

What is the expected output? What do you see instead?
Quake2 model - expected: "all","stand","run","attack"...
Quake2 model - instead: "all"

What version of the product are you using? On what operating system?
rev 858

Please provide any additional information below.
--- fix MD2.as ---
        /**
         * Gets all animation channels for a target. NOTE: when target is null,
'this' object is used.
         * 
         * @param   target  The target to get the channels for.
         * 
         * @return  Array of AnimationChannel3D.
         */ 
        public function getAnimationChannels(target:DisplayObject3D=null):Array
        {
            target = target || this;
            if(target === this)
            {
                return _channels;
            }
            return null; // why bother to have the target attr when all that works
is 'this'?
        }

Original issue reported on code.google.com by kishalmi@gmail.com on 9 Jan 2009 at 2:21

GoogleCodeExporter commented 9 years ago
fixed

Original comment by tim.k...@gmail.com on 13 Jan 2009 at 3:08