Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion fast64_internal/f3d/f3d_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,8 @@ def cel_shading_checks(f3d_mat):
if uses_decal:
raise PluginError("Must use Lighter and Darker cel levels before duplicating either of them")

return uses_decal


# existingVertexData is used for cases where we want to assume the presence of vertex data
# loaded in from a previous matrix transform (ex. sm64 skinning)
Expand Down Expand Up @@ -1055,7 +1057,7 @@ def writeCelLevels(self, celTriList: Optional[GfxList] = None, triCmds: Optional
f3d = get_F3D_GBI()

try:
cel_shading_checks(f3dMat)
usesDecal = cel_shading_checks(f3dMat)
except Exception as exc:
raise PluginError(f"Material {self.material.name}: {str(exc)}") from exc

Expand Down