Skip to content

ResourceSaver.save not saving 0 int values in 4.5 RC2 #110466

@palepeak

Description

@palepeak

Tested versions

  • Reproducible in 4.5 RC2, 4.5RC1
  • Not Reproducible in 4.4.1 Stable

System information

Godot v4.5.rc2 - Windows 10 (build 19045) - Single-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 32.0.15.6094) - AMD Ryzen 5 3600X 6-Core Processor (12 threads) - 63.93 GiB memory

Issue description

ResourceSaver.save is not saving any int fields with values of 0.
The saved tres file has the fields omitted from the file entirely.

Steps to reproduce

Use ResourceSaver.save to save any resource with int fields.
Have the int fields be set to 0
Check output file and confirm the field is not present
Have the int fields be set to any none 0 value
Check output file and confirm the field is now present

Minimal reproduction project (MRP)

sandbox.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions