Fixed Generic tag editor - GRADIENT filters fields

Disallow manually adding items to convolution matrix
This commit is contained in:
Jindra Petřík
2023-10-14 22:20:20 +02:00
parent ea06ec9ceb
commit 4e28ed3839
4 changed files with 56 additions and 9 deletions

View File

@@ -48,4 +48,6 @@ public @interface SWFType {
//Count to add to countField
int countAdd() default 0;
boolean canAdd() default true;
}

View File

@@ -62,7 +62,7 @@ public class CONVOLUTIONFILTER extends FILTER {
/**
* Matrix values
*/
@SWFType(BasicType.FLOAT)
@SWFType(value = BasicType.FLOAT, countField = "matrixX * matrixY", canAdd = false)
public float[] matrix = new float[] {
0, 0, 0,
0, 1, 0,