| 65686 | var blendFunc = options["BlendFunc"]; |
| 65687 | if(blendFunc && blendFunc["Src"] !== undefined && blendFunc["Dst"] !== undefined) |
| 65688 | frame.setBlendFunc(new cc.BlendFunc(blendFunc["Src"], blendFunc["Dst"])); |
| 65689 | return frame; |
| 65690 | } |
| 65691 | } |
| 65692 | ]; |
| 65693 | var loadEasingDataWithFlatBuffers = function(frame, options){ |
| 65694 | var type = options["Type"]; |
| 65695 | frame.setTweenType(type); |
| 65696 | var points = options["Points"]; |
| 65697 | var result = []; |
| 65698 | if(points){ |
| 65699 | points.forEach(function(p){ |
| 65700 | result.push(p["X"]); |
| 65701 | result.push(p["Y"]); |
| 65702 | }); |
| 65703 | frame.setEasingParams(result); |