Skip to content

Commit b2215a9

Browse files
committed
export fix
1 parent 69a81d9 commit b2215a9

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

fast64_internal/f3d/f3d_material.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,30 +3048,28 @@ class TextureProperty(PropertyGroup):
30483048
)
30493049
tile_scroll: bpy.props.PointerProperty(type=SetTileSizeScrollProperty)
30503050

3051-
tex_format: str
3052-
30533051
@property
3054-
def is_ci(self):
3052+
def is_ci(self) -> bool:
30553053
return self.tex_format.startswith("CI")
30563054

30573055
@property
3058-
def is_yuv(self):
3056+
def is_yuv(self) -> bool:
30593057
return self.tex_format in {"YUV16"}
30603058

30613059
@property
30623060
def tlut_mode(self):
30633061
return f"G_TT_{self.ci_format if self.is_ci else 'NONE'}"
30643062

30653063
@property
3066-
def has_texture(self):
3064+
def has_texture(self) -> bool:
30673065
return self.load_tex and not self.use_tex_reference
30683066

30693067
@property
3070-
def has_palette(self):
3068+
def has_palette(self) -> bool:
30713069
return self.load_pal and self.has_texture and not self.use_pal_reference
30723070

30733071
@property
3074-
def size(self) -> tuple[int]:
3072+
def size(self) -> tuple[int, int]:
30753073
if self.has_texture:
30763074
if self.tex is not None:
30773075
return tuple(self.tex.size)

fast64_internal/sm64/sm64_f3d_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ def draw(self, context):
876876
infoBox.label(text=enumHUDPaths[context.scene.TexRectExportType][0] + ": ")
877877
infoBox.label(text=enumHUDPaths[context.scene.TexRectExportType][1] + ".")
878878
prop_split(col, context.scene, "TexRectName", "Name")
879-
ui_image(False, col, None, context.scene.texrect, context.scene.TexRectName, False, hide_lowhigh=True)
879+
ui_image(False, False, col, context.scene.texrect, context.scene.TexRectName, False, hide_lowhigh=True)
880880
col.operator(ExportTexRectDraw.bl_idname)
881881

882882

0 commit comments

Comments
 (0)