|
@@ -310,7 +310,13 @@ function updateToolboxOptions()
|
|
|
SandboxScene.setDebugOn( "fps" );
|
|
|
else
|
|
|
SandboxScene.setDebugOff( "fps" );
|
|
|
-
|
|
|
+
|
|
|
+ // Set option.
|
|
|
+ if ( $pref::Sandbox::controllersOption )
|
|
|
+ SandboxScene.setDebugOn( "controllers" );
|
|
|
+ else
|
|
|
+ SandboxScene.setDebugOff( "controllers" );
|
|
|
+
|
|
|
// Set option.
|
|
|
if ( $pref::Sandbox::jointsOption )
|
|
|
SandboxScene.setDebugOn( "joints" );
|
|
@@ -362,6 +368,7 @@ function updateToolboxOptions()
|
|
|
// Set the options check-boxe.
|
|
|
MetricsOptionCheckBox.setStateOn( $pref::Sandbox::metricsOption );
|
|
|
FpsMetricsOptionCheckBox.setStateOn( $pref::Sandbox::fpsmetricsOption );
|
|
|
+ ControllersOptionCheckBox.setStateOn( $pref::Sandbox::controllersOption );
|
|
|
JointsOptionCheckBox.setStateOn( $pref::Sandbox::jointsOption );
|
|
|
WireframeOptionCheckBox.setStateOn( $pref::Sandbox::wireframeOption );
|
|
|
AABBOptionCheckBox.setStateOn( $pref::Sandbox::aabbOption );
|
|
@@ -419,6 +426,14 @@ function setMetricsOption( %flag )
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
+function setControllersOption( %flag )
|
|
|
+{
|
|
|
+ $pref::Sandbox::controllersOption = %flag;
|
|
|
+ updateToolboxOptions();
|
|
|
+}
|
|
|
+
|
|
|
+//-----------------------------------------------------------------------------
|
|
|
+
|
|
|
function setJointsOption( %flag )
|
|
|
{
|
|
|
$pref::Sandbox::jointsOption = %flag;
|