Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckBoxDef causes an error if you don't explicitly set a label #3

Closed
valadaptive opened this issue Jun 25, 2024 · 1 comment
Closed

Comments

@valadaptive
Copy link

valadaptive commented Jun 25, 2024

It appears that the API zero-initializes PF_ParamDefs, which means that a CheckBoxDef's nameptr is null by default.

After Effects doesn't like this, and will give a hard-to-debug "the plugin failed to initialize" error if you don't explicitly set the checkbox's label.

One way to fix this would be to initialize nameptr to point to an empty string, but that'd require separating out the initialization code for each type of parameter.

@AdrianEddy
Copy link
Owner

Good catch, fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants