(start xml.StartElement, dom *Collada)
| 97 | } |
| 98 | |
| 99 | func (d *Decoder) decLibraryAnimations(start xml.StartElement, dom *Collada) error { |
| 100 | |
| 101 | la := new(LibraryAnimations) |
| 102 | dom.LibraryAnimations = la |
| 103 | la.Id = findAttrib(start, "id").Value |
| 104 | la.Name = findAttrib(start, "name").Value |
| 105 | |
| 106 | for { |
| 107 | child, _, err := d.decNextChild(start) |
| 108 | if err != nil || child.Name.Local == "" { |
| 109 | return err |
| 110 | } |
| 111 | if child.Name.Local == "animation" { |
| 112 | err := d.decAnimation(child, la) |
| 113 | if err != nil { |
| 114 | return err |
| 115 | } |
| 116 | continue |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | func (d *Decoder) decAnimation(start xml.StartElement, la *LibraryAnimations) error { |
| 122 |
no test coverage detected