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

Null Coalescing does not prevent undefined Molang variable error #586

Open
JannisX11 opened this issue May 29, 2024 · 0 comments
Open

Null Coalescing does not prevent undefined Molang variable error #586

JannisX11 opened this issue May 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@JannisX11
Copy link

Describe the bug
When referencing a Molang variable that has not previously been defined, an error is thrown, even when using null coalescing to handle undefined variables

To Reproduce
Steps to reproduce the behavior:

  1. Create a client entity and a linked animation
  2. In the animation, add a Molang expression similar to this: v.width ?? 1
  3. Go back to the entity file
  4. The animation is now marked as faulty with the following error message: The molang variable 'variable.width' is not defined, which should be defined in this '<entity identifier>'

Expected behavior
The animation should be valid

Screenshots

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: -
  • Version: v7.0.46
@JannisX11 JannisX11 added the bug Something isn't working label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant