Return the default color if no image is set in image universal properties.

This commit is contained in:
Relintai 2021-10-31 11:30:14 +01:00
parent ee03da9a85
commit ccc0a59a58

View File

@ -257,7 +257,7 @@ func get_default_value(uv : Vector2 = Vector2()):
image = override_image
if !image:
return Color()
return default_color
image.lock()
var x : int = uv.x * image.get_width()