From c265969259fd7fcb2c0f30b2a7dbfde6d90b8c8b Mon Sep 17 00:00:00 2001 From: Alexander Akulich Date: Fri, 6 Oct 2023 17:10:42 +0300 Subject: [PATCH] datasrc: Add m_Flag to CDataImage for compat with 'seven' struct --- datasrc/content.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datasrc/content.py b/datasrc/content.py index 4a43c20ec..73bc6bcaa 100644 --- a/datasrc/content.py +++ b/datasrc/content.py @@ -16,10 +16,11 @@ class SoundSet(Struct): self.sounds.Add(Sound(filename)) class Image(Struct): - def __init__(self, name="", filename=""): + def __init__(self, name="", filename="", linear_mapping=0): Struct.__init__(self, "CDataImage") self.name = String(name) self.filename = String(filename) + self.flag = Int(linear_mapping) self.id = TextureHandle() class SpriteSet(Struct):