Skip to content

Null Coalescing does not prevent undefined Molang variable error #586

@JannisX11

Description

@JannisX11

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions