Skip to content

Commit

Permalink
Hack for geo because
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilaa3 committed Sep 13, 2024
1 parent 54650c6 commit 576f669
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fast64_internal/sm64/sm64_geolayout_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,12 @@ def to_binary(self, segmentData):

def to_c(self, depth):
if self.node is not None:
nodeC = self.node.to_c()
if self.node.__class__.__name__ == "CustomCmd": # hack, prevents circular import
nodeC = self.node.to_c(depth * "\t") + "," # seriously why do nodes add ","
else:
nodeC = self.node.to_c()
if nodeC is not None: # Should only be the case for DisplayListNode with no DL
data = depth * "\t" + self.node.to_c() + "\n"
data = depth * "\t" + nodeC + "\n"
else:
data = ""
else:
Expand Down

0 comments on commit 576f669

Please sign in to comment.