mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:31:12 +08:00
1 parent
affc84459e
commit
e78ea6f919
18 files changed
+567
-51
No files matched your search
+5
-1
@@ -92,12 +92,16 @@ func (c *FillColor) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
type plain FillColor
|
||||
var value struct {
|
||||
plain
|
||||
Other *struct{} `xml:",any"`
|
||||
LegacyMesh *LaGouraudShd `xml:"LaGourandShd"`
|
||||
Other *struct{} `xml:",any"`
|
||||
}
|
||||
if err := d.DecodeElement(&value, &start); err != nil {
|
||||
return err
|
||||
}
|
||||
*c = FillColor(value.plain)
|
||||
if c.LaGouraudShd == nil {
|
||||
c.LaGouraudShd = value.LegacyMesh
|
||||
}
|
||||
c.unsupported = value.Other != nil
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user