Do you want to work on this issue?
You can request for a bounty in order to promote it!
When I rename property in Custom Types Editor, it do not rename changed property on the object in map. #4011
ludek17052 posted onGitHub
Describe the bug When I rename property in Custom Types Editor, it do not rename changed property on the object in map.
To Reproduce Steps to reproduce the behavior:
- Custom Types Editor -> Add Class "MyClass" -> Add Member "MyMember" (string)
- Add "MyClass" to any object "MyObject" in Tileset (*.tsx) / Property name = "MMPropName"
- Add "MyObject" into map (*.tmx)
- Change value of "MyMember" on the object in the map (*.tmx). Value = "MMValue"
- Rename "MyMember" to "MyNewMember" in Custom Types Editor
- In map we can see "MyNewMember" on the object, but old value (MMValue) is missing and the value is empty. And now we will change value of "MyNewMember" on the object in the map. Value = "MnewMValue"
In map file (.tmx) is still "MyMember" with value "MMValue":
<property name="MMPropName" type="class" propertytype="MyClass">
<properties>
<property name="MyMember" value="MMValue"/>
*<--- THIS ROW SHOULD BE REMOVED, because we renamed "MyMember" and paramater with this name no more exists**
<property name="MyNewMember" value="MnewMValue"/>
</properties>
</property>
If I will repeat steps 4-5-6 there will be more and more parameters that already not exists.
Expected behavior In map file (*.tmx) parameter "MyMember" will be renamed to "MyNewMember" and old value will stay there. And old parametr "MyMember" will be removed.
EDIT: And probably : when I remove "MyClass" from the object in Tileset (*.tsx), it should remove "MyClass" from the object in the map (*.tmx) too. Now "MyClass" is still on the object in map even the object in *.tsx no more contains the "MyClass".
Specifications:
- OS: Windows 10
- Tiled Version: 1.11.0