Skip to content

Commit

Permalink
Linked verbose wrapper to initparams (#282)
Browse files Browse the repository at this point in the history
- Changed WrapperVerbose to false (default according to summary)
- Passed WrapperVerbose to initParameters

This way devs can enable the setting. It is not exposed in the editor yet. Is this something desirable?
  • Loading branch information
smitdylan2001 authored Mar 11, 2024
1 parent 67e63e0 commit ff35f65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ZEDCamera/Assets/ZED/SDK/Helpers/Scripts/ZEDManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static List<ZEDManager> GetInstances()
/// at C:/ProgramData/stereolabs/SL_Unity_wrapper.txt. This helps find issues that may occur within
/// the protected .dll, but can decrease performance.
/// </summary>
private bool wrapperVerbose = true;
private bool wrapperVerbose = false;

/// <summary>
/// Current instance of the ZED Camera, which handles calls to the Unity wrapper .dll.
Expand Down Expand Up @@ -2080,6 +2080,7 @@ void Awake()
initParameters.asyncGrabCameraRecovery = asyncGrabCameraRecovery;
initParameters.grabComputeCappingFPS = grabComputeCappingFPS;
initParameters.enableImageValidityCheck = enableImageValidityCheck;
initParameters.sdkVerbose = wrapperVerbose ? 1 : 0;

//Check if this rig is a stereo rig. Will set isStereoRig accordingly.
CheckStereoMode();
Expand Down

0 comments on commit ff35f65

Please sign in to comment.