plug-ins: remove GIMP_PARAM_NO_VALIDATE for resource arguments.

We validate arguments for a reason. This special flag must only be used
in special cases (when it's harder/not possible or not implemented yet
to validate properly).

In fact #12039 would have been much simpler to diagnose and debug if
this flag had not been there from the start, because we would have had
an error earlier, on core side, which we could have traced back much
more simply!
This commit is contained in:
Jehan 2025-01-14 00:49:33 +01:00
parent d42c76cf09
commit 4448b1054a

View file

@ -242,7 +242,7 @@ script_fu_add_resource_arg_default_from_context (
FALSE, /* none OK */
NULL, /* default */
TRUE, /* default_from_context */
G_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE);
G_PARAM_READWRITE);
}
@ -259,7 +259,7 @@ script_fu_add_resource_arg_with_default (
FALSE, /* none OK */
default_resource,
FALSE, /* default_from_context */
G_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE);
G_PARAM_READWRITE);
}