MCPcopy Index your code
hub / github.com/g3n/engine / decLibraryAnimations

Method decLibraryAnimations

loader/collada/library_animations.go:99–119  ·  view source on GitHub ↗
(start xml.StartElement, dom *Collada)

Source from the content-addressed store, hash-verified

97}
98
99func (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
121func (d *Decoder) decAnimation(start xml.StartElement, la *LibraryAnimations) error {
122

Callers 1

decColladaMethod · 0.95

Calls 3

decNextChildMethod · 0.95
decAnimationMethod · 0.95
findAttribFunction · 0.85

Tested by

no test coverage detected