godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.55k stars 21.26k forks source link

VisualScript: untouched value is null instead of 0 #12065

Closed ghost closed 7 years ago

ghost commented 7 years ago

Operating system or device, Godot version, GPU Model and driver (if graphics related): Antergos x86_64, Master e97ada6

Issue description: image Expected: no error Happened: error in arg2, alpha is null

Steps to reproduce:

  1. add VS and nodes as in the image, don't set any value
  2. set 1st arg to "red"
  3. save and run -> error
  4. stop, click in the 2nd arg and press enter without changing value
  5. save and run -> ok
Adinimys commented 7 years ago

If I'm not mistaken this issue arises with all BuiltinFunc with 2 arguments or more. Not if they have only one argument

rcurtis commented 7 years ago

Pull request to fix: https://github.com/godotengine/godot/pull/12097