Browse Source

Merge pull request #1935 from Areloch/RecordingSafetyCheck

Adds a check to the record movie call
Areloch 8 years ago
parent
commit
15ef6bda92
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Engine/source/gfx/video/videoCapture.cpp

+ 4 - 0
Engine/source/gfx/video/videoCapture.cpp

@@ -314,6 +314,9 @@ DefineEngineFunction( startVideoCapture, void,
    "@see stopVideoCapture\n"
    "@ingroup Rendering\n" )
 {
+#ifdef TORQUE_DEBUG
+   Con::errorf("Recording video is disabled in debug!");
+#else
    if ( !canvas )
    {
       Con::errorf("startVideoCapture -Please specify a GuiCanvas object to record from!");
@@ -328,6 +331,7 @@ DefineEngineFunction( startVideoCapture, void,
       VIDCAP->setResolution(resolution);
 
    VIDCAP->begin(canvas);
+#endif
 }
 
 DefineEngineFunction( stopVideoCapture, void, (),,