-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object resort #1168
Comments
Can you be a little more specific? I'm not really sure what you're talking about. Nothing should remain after deleting objects. |
I think what he means is that if you create 5 objects, and delete the third one, the ids remain as |
Well, this is intentional because these IDs were meant to be used to uniquely refer to objects from custom properties or even external files. Renumbering them would destroy such references. Also, a gap in the range of IDs is not a "ghost object", so I'm not sure if that's what he meant. |
That seems strange to me. I can understand referring to them from external Landon Manning On 5 January 2016 at 18:19, Thorbjørn Lindeijer [email protected]
|
That is only because it is still a little clumsy since custom properties are always strings. Once property types are implemented, there can be an "object reference" type, allowing Tiled to make it easier to make links as well as to render links. |
How would you export this link to, say, Lua? Landon Manning On 5 January 2016 at 20:12, Thorbjørn Lindeijer [email protected]
|
Just as the number that it is, right? |
Hm. I still don't really like it, but I guess it's not up to me. I'd prefer Landon Manning On 5 January 2016 at 20:26, Thorbjørn Lindeijer [email protected]
|
Names are not unique, and they could change at will, breaking an unknown set of links. Of course naming has also advantages, but in supporting the connecting of objects explicitly in Tiled (#707), they don't really work. |
Closing this since the original poster never clarified their problem. |
would it be possible to add in object resorting when/if objects are deleted from a layer, Currently it causes ghost objects that don't exist and causes issues :(
The text was updated successfully, but these errors were encountered: