Skip to content

Commit ff35f65

Browse files
Linked verbose wrapper to initparams (#282)
- 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?
1 parent 67e63e0 commit ff35f65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ZEDCamera/Assets/ZED/SDK/Helpers/Scripts/ZEDManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static List<ZEDManager> GetInstances()
5656
/// at C:/ProgramData/stereolabs/SL_Unity_wrapper.txt. This helps find issues that may occur within
5757
/// the protected .dll, but can decrease performance.
5858
/// </summary>
59-
private bool wrapperVerbose = true;
59+
private bool wrapperVerbose = false;
6060

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

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

0 commit comments

Comments
 (0)