Skip to content

Commit 1a38693

Browse files
committed
Changed (hard-coded) mcgui 3D visualiser to be webgl-classic, following issue #2380
1 parent 4c06b20 commit 1a38693

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

tools/Python/mcgui/mcgui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,9 +741,9 @@ def handleMcDisplayWeb(self):
741741
DISPLAY="mcdisplay"
742742
else:
743743
DISPLAY="mxdisplay"
744-
self.emitter.status('Running ' + DISPLAY + '-webgl...')
744+
self.emitter.status('Running ' + DISPLAY + '-webgl-classic...')
745745
try:
746-
cmd = DISPLAY+'-webgl --default -n100 ' + os.path.basename(self.state.getInstrumentFile()) + '&'
746+
cmd = DISPLAY+'-webgl-classic --default -n100 ' + os.path.basename(self.state.getInstrumentFile()) + '&'
747747
self.emitter.message(cmd, gui=True)
748748
self.emitter.message('', gui=True)
749749

tools/Python/mcgui/mw.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
</action>
350350
<action name="actionDisplay">
351351
<property name="text">
352-
<string>Display-3D</string>
352+
<string>Display-3D (classic)</string>
353353
</property>
354354
</action>
355355
<action name="actionDisplay_2d">

tools/Python/mcgui/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def retranslateUi(self, MainWindow):
263263
self.actionConfiguration.setToolTip(_translate("MainWindow", "mccode configuration"))
264264
self.actionCompile_Instrument_MPI.setText(_translate("MainWindow", "Compile Instrument (MPI)"))
265265
self.actionMcdoc.setText(_translate("MainWindow", "mcdoc Component Reference"))
266-
self.actionDisplay.setText(_translate("MainWindow", "Display-3D"))
266+
self.actionDisplay.setText(_translate("MainWindow", "Display-3D (classic)"))
267267
self.actionDisplay_2d.setText(_translate("MainWindow", "Display-2D"))
268268
self.actionPlotOther.setText(_translate("MainWindow", "Plot Other Results"))
269269
self.actionPlotOther.setShortcut(_translate("MainWindow", "Ctrl+Shift+P"))

0 commit comments

Comments
 (0)