datasrc: Add m_Flag to CDataImage for compat with 'seven' struct

This commit is contained in:
Alexander Akulich 2023-10-06 17:10:42 +03:00
parent 487f0541b4
commit c265969259

View file

@ -16,10 +16,11 @@ class SoundSet(Struct):
self.sounds.Add(Sound(filename)) self.sounds.Add(Sound(filename))
class Image(Struct): class Image(Struct):
def __init__(self, name="", filename=""): def __init__(self, name="", filename="", linear_mapping=0):
Struct.__init__(self, "CDataImage") Struct.__init__(self, "CDataImage")
self.name = String(name) self.name = String(name)
self.filename = String(filename) self.filename = String(filename)
self.flag = Int(linear_mapping)
self.id = TextureHandle() self.id = TextureHandle()
class SpriteSet(Struct): class SpriteSet(Struct):