Skip to content

Commit

Permalink
Updated gitignore in new installer and formatted exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Feb 20, 2024
1 parent 05175cf commit d8c2a55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
16 changes: 5 additions & 11 deletions exporter/SynthesisFusionAddin/src/UI/ConfigCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -1690,9 +1690,7 @@ def notify(self, args: adsk.core.SelectionEventArgs):
# indicator = INPUTS_ROOT.itemById("algorithmic_indicator")

if self.selectedOcc:
self.cmd.setCursor(
"", 0, 0
)
self.cmd.setCursor("", 0, 0)
if dropdownExportMode.selectedItem.index == 1:
occurrenceList = gm.app.activeDocument.design.rootComponent.allOccurrencesByComponent(
self.selectedOcc.component
Expand All @@ -1707,9 +1705,7 @@ def notify(self, args: adsk.core.SelectionEventArgs):
selectionInput.isVisible = False

elif self.selectedJoint:
self.cmd.setCursor(
"", 0, 0
)
self.cmd.setCursor("", 0, 0)
jointType = self.selectedJoint.jointMotion.jointType
if (
jointType == JointMotions.REVOLUTE.value
Expand Down Expand Up @@ -1766,8 +1762,8 @@ def notify(self, args):
if (not preSelectedOcc and not preSelectedJoint) or not design:
self.cmd.setCursor("", 0, 0)
return
preSelected = preSelectedOcc if preSelectedOcc else preSelectedJoint

preSelected = preSelectedOcc if preSelectedOcc else preSelectedJoint

dropdownExportMode = INPUTS_ROOT.itemById("mode")
if preSelected and design:
Expand Down Expand Up @@ -1799,9 +1795,7 @@ def notify(self, args):
0,
)
else:
self.cmd.setCursor(
"", 0, 0
)
self.cmd.setCursor("", 0, 0)
except:
if gm.ui:
gm.ui.messageBox("Failed:\n{}".format(traceback.format_exc()))
Expand Down
2 changes: 1 addition & 1 deletion installer/exporter/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/Synthesis

/*.zip

0 comments on commit d8c2a55

Please sign in to comment.