self.viewSelection = openglGui.glComboButton(self, 'View mode', [7,19,11,15,23], ['Normal', 'Overhang', 'Transparent', 'X-Ray', 'Layers'], (-1,0), self.OnViewChange)
self.layerSelect = openglGui.glSlider(self, 10000, 0, 1, (-1,-2), lambda : self.QueueRefresh())
- self.youMagineButton = openglGui.glButton(self, 26, 'YouMagine upload', (2,0), lambda button: youmagineGui.youmagineManager(self.GetTopLevelParent(), self._scene))
+ self.youMagineButton = openglGui.glButton(self, 26, 'Share on YouMagine', (2,0), lambda button: youmagineGui.youmagineManager(self.GetTopLevelParent(), self._scene))
self.youMagineButton.setDisabled(True)
self.notification = openglGui.glNotification(self, (0, 0))
if publish:
wx.CallAfter(self._indicatorWindow.showBusy, 'Publishing design...')
- self._ym.publishDesign(id)
+ if not self._ym.publishDesign(id):
+ #If publishing failed try again after 1 second, this might help when you need to wait for the renderer. But does not always work.
+ time.sleep(1)
+ self._ym.publishDesign(id)
wx.CallAfter(self._indicatorWindow.Hide)
webbrowser.open(self._ym.viewUrlForDesign(id))