Skip to content

Commit

Permalink
fix: Gampieces using wrong ID for mirabuf mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Dec 19, 2024
1 parent a901c4f commit e9613b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions exporter/SynthesisFusionAddin/src/UI/GamepieceConfigTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
createTextBoxInput,
)
from src.Util import convertMassUnitsFrom, convertMassUnitsTo, getFusionUnitSystem

from src.Parser.SynthesisParser.Utilities import (
guid_occurrence,
)

class GamepieceConfigTab:
selectedGamepieceList: list[adsk.fusion.Occurrence] = []
Expand Down Expand Up @@ -198,7 +200,7 @@ def removeChildOccurrences(childOccurrences: adsk.fusion.OccurrenceList) -> None
def getGamepieces(self) -> list[Gamepiece]:
gamepieces: list[Gamepiece] = []
for row in range(1, self.gamepieceTable.rowCount): # Row is 1 indexed
gamepieceEntityToken = self.selectedGamepieceList[row - 1].entityToken
gamepieceEntityToken = guid_occurrence(self.selectedGamepieceList[row - 1])
gamepieceWeight = convertMassUnitsTo(self.gamepieceTable.getInputAtPosition(row, 1).value)
gamepieceFrictionCoefficient = self.gamepieceTable.getInputAtPosition(row, 2).valueOne
gamepieces.append(Gamepiece(gamepieceEntityToken, gamepieceWeight, gamepieceFrictionCoefficient))
Expand Down

0 comments on commit e9613b5

Please sign in to comment.