Skip to content

Commit 1b1122b

Browse files
committed
Fixed lip image data not being initialized.
1 parent cd86c17 commit 1b1122b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

SRanipalExtTrackingModule/SRanipalTrackingInterface.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public class SRanipalExtTrackingInterface : ExtTrackingModule
2929
internal static IntPtr _processHandle;
3030
internal static IntPtr _offset;
3131

32-
LipData_v2 lipData;
33-
EyeData_v2 eyeData;
34-
3532
private static byte[] eyeImageCache, lipImageCache;
3633

3734
// Kernel32 SetDllDirectory
@@ -169,6 +166,7 @@ public override (bool eyeSuccess, bool expressionSuccess) Initialize(bool eyeAva
169166
lipData.image = Marshal.AllocCoTaskMem(UnifiedTracking.LipImageData.ImageSize.x *
170167
UnifiedTracking.LipImageData.ImageSize.x);
171168

169+
UnifiedTracking.LipImageData.ImageData = new byte[SRanipal_Lip_v2.ImageWidth * SRanipal_Lip_v2.ImageHeight * 4];
172170
lipImageCache = new byte[SRanipal_Lip_v2.ImageWidth * SRanipal_Lip_v2.ImageHeight];
173171
}
174172

0 commit comments

Comments
 (0)