mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #1935 from Areloch/RecordingSafetyCheck
Adds a check to the record movie call
This commit is contained in:
commit
15ef6bda92
1 changed files with 4 additions and 0 deletions
|
|
@ -314,6 +314,9 @@ DefineEngineFunction( startVideoCapture, void,
|
||||||
"@see stopVideoCapture\n"
|
"@see stopVideoCapture\n"
|
||||||
"@ingroup Rendering\n" )
|
"@ingroup Rendering\n" )
|
||||||
{
|
{
|
||||||
|
#ifdef TORQUE_DEBUG
|
||||||
|
Con::errorf("Recording video is disabled in debug!");
|
||||||
|
#else
|
||||||
if ( !canvas )
|
if ( !canvas )
|
||||||
{
|
{
|
||||||
Con::errorf("startVideoCapture -Please specify a GuiCanvas object to record from!");
|
Con::errorf("startVideoCapture -Please specify a GuiCanvas object to record from!");
|
||||||
|
|
@ -328,6 +331,7 @@ DefineEngineFunction( startVideoCapture, void,
|
||||||
VIDCAP->setResolution(resolution);
|
VIDCAP->setResolution(resolution);
|
||||||
|
|
||||||
VIDCAP->begin(canvas);
|
VIDCAP->begin(canvas);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
DefineEngineFunction( stopVideoCapture, void, (),,
|
DefineEngineFunction( stopVideoCapture, void, (),,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue