BGE: Fix to allow render options such display framerate and profile to work

when launching the Blenderplayer from Blender.

This bug was reported and fixed by SolarLune.
This commit is contained in:
Mitchell Stokes 2013-10-16 17:54:12 +00:00
parent af6636bbed
commit 1ce5978805

@ -1298,10 +1298,10 @@ class WM_OT_blenderplayer_start(Operator):
# handle some UI options as command line arguments
args.extend([
"-g", "show_framerate=%d" % gs.show_framerate_profile,
"-g", "show_profile=%d" % gs.show_framerate_profile,
"-g", "show_properties=%d" % gs.show_debug_properties,
"-g", "ignore_deprecation_warnings=%d" % (not gs.use_deprecation_warnings),
"-g", "show_framerate", "=", "%d" % gs.show_framerate_profile,
"-g", "show_profile", "=", "%d" % gs.show_framerate_profile,
"-g", "show_properties", "=", "%d" % gs.show_debug_properties,
"-g", "ignore_deprecation_warnings", "=", "%d" % (not gs.use_deprecation_warnings),
])
# finish the call with the path to the blend file