`PF_PUI_INVISIBLE` not always applied to `PF_Param_POPUP`
In my PremierPro plugin, I have one popup that controls the visibility of a list of `PF_Param_POPUP`.
So I set one to visible and all the other to invisible. This works most of the time but sometime, one does not get hidden !!!
I have tried changing the visibility in PF_Cmd_USER_CHANGED_PARAM when the controling popup change and them I moved the update UI logic in PF_Cmd_UPDATE_PARAMS_UI. But I get the same issue.
My update code looks like this :
static PF_Err UpdateParamsUI(PF_InData *in_data,
PF_OutData *out_data,
PF_ParamDef *params[])
{
PF_Err err = PF_Err_NONE;
AEGP_SuiteHandler suites(in_data->pica_basicP);
PF_ParamDef param;
A_long num = in_data->num_params;
for (int i = 0; i < num; i++)
{
bool bSecret = computeSecret(i);
AEFX_CLR_STRUCT(param);
param = *params[i];
if (bSecret)
param.ui_flags |= PF_PUI_INVISIBLE;
else
param.ui_flags &= ~PF_PUI_INVISIBLE;
ERR(suites.ParamUtilsSuite3()->PF_UpdateParamUI(in_data->effect_ref,
i, ¶m));
}
If I test the param.ui_flags that is still (incorrectly) visible, I see that the PF_UI_VISIBLE bit is correctly set but the UI does not honor this invisible flag.
Almost all my UI elements has the PF_ParamFlag_SUPERVISE set.
Thanks for your help
