prevent using canvasTexture as Input

#1
by amkorousagi - opened
Files changed (1) hide show
  1. RunFaceLandmark.cs +2 -0
RunFaceLandmark.cs CHANGED
@@ -188,6 +188,8 @@ public class RunFaceLandmark : MonoBehaviour
188
  {
189
  if (!closing)
190
  {
 
 
191
  RunInference(targetTexture);
192
  }
193
  }
 
188
  {
189
  if (!closing)
190
  {
191
+ if (inputType == InputType.Webcam && !webcam.didUpdateThisFrame) return;
192
+
193
  RunInference(targetTexture);
194
  }
195
  }