Add Java annotations to setMorphWeights.

Noticed this while working on javadoc stuff.
This commit is contained in:
Philip Rideout
2019-09-30 17:15:37 -07:00
parent 769f1db011
commit 9de934e2bd

View File

@@ -19,6 +19,7 @@ package com.google.android.filament;
import android.support.annotation.IntRange;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.Size;
import java.nio.Buffer;
import java.nio.BufferOverflowException;
@@ -231,7 +232,7 @@ public class RenderableManager {
}
}
public void setMorphWeights(@EntityInstance int i, float[] weights) {
public void setMorphWeights(@EntityInstance int i, @NonNull @Size(min = 4) float[] weights) {
nSetMorphWeights(mNativeObject, i, weights);
}