Browse Source

Merge pull request #1319 from Areloch/nonocculus_popup_dialog_fix

Nonocculus popup dialog fix

Az verified that it corrects the issue in non-oculus builds.
Areloch 10 years ago
parent
commit
8a55feebef

+ 2 - 1
Templates/Empty/game/core/scripts/gui/messageBoxes/messageBox.ed.cs

@@ -20,7 +20,8 @@
 // IN THE SOFTWARE.
 //-----------------------------------------------------------------------------
 
-$GameCanvas = 0;
+if($GameCanvas == OculusCanvas)
+   $GameCanvas = 0;
 
 // Cleanup Dialog created by 'core'
 if( isObject( MessagePopupDlg ) )

+ 2 - 1
Templates/Full/game/core/scripts/gui/messageBoxes/messageBox.ed.cs

@@ -20,7 +20,8 @@
 // IN THE SOFTWARE.
 //-----------------------------------------------------------------------------
 
-$GameCanvas = 0;
+if($GameCanvas == OculusCanvas)
+   $GameCanvas = 0;
 
 // Cleanup Dialog created by 'core'
 if( isObject( MessagePopupDlg ) )