You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using custom types, if a value is not modified, it will not be included in exports.
If you modify the value, then set it back to the default, it will be included in the export.
To Reproduce
Steps to reproduce the behavior:
Create a custom type
a. View -> Custom Types Editor
b. Add Class
c. Add Member
d. Select 'float' as the type
e. set 3.0 as the default value
f. close the custom type editor
Select an object
Add a property to the object, selecting the newly created custom type
a. Do not modify the value, it should default to 3.0
Export the map as lua
Note that when inspecting the lua file, the custom property will have an empty table as its value.
Change the value of the custom property to antother value, then back to 3.0
Export the map as lua
Note that when inspecting the lua file, the custom property will appropriately have a field with the value 3.0
Expected behavior
Default values should be included in the export.
Specifications:
OS: Archlinux
Tiled Version: 1.9.2
The text was updated successfully, but these errors were encountered:
Default values are never included by default, but should be included if the "resolve object types and properties" export option is checked. However, that option currently doesn't currently apply to class members, which is #3411.
Describe the bug
When using custom types, if a value is not modified, it will not be included in exports.
If you modify the value, then set it back to the default, it will be included in the export.
To Reproduce
Steps to reproduce the behavior:
a. View -> Custom Types Editor
b. Add Class
c. Add Member
d. Select 'float' as the type
e. set 3.0 as the default value
f. close the custom type editor
a. Do not modify the value, it should default to 3.0
Note that when inspecting the lua file, the custom property will have an empty table as its value.
Note that when inspecting the lua file, the custom property will appropriately have a field with the value 3.0
Expected behavior
Default values should be included in the export.
Specifications:
The text was updated successfully, but these errors were encountered: