Properly show negative ObjectID properties#120644
Conversation
6a94dbb to
f63eb34
Compare
|
This might not be the correct solution I'd say, the value isn't negative it just becomes a negative value when parsed through |
|
The thing is that if you use something like |
|
How is that relevant though? They aren't persistent so why would you ever copy it from the inspector into a variable? It's not valid across sessions, is anyone actually doing that? |
|
What I mean is that while internally it is always a positive value, for the stuff users interact with it is not. And showing it as a positive is technically lying to them. |
|
Not really, and by that logic we should change the representation of all unsigned values to be signed, but I don't see how it matters because the value isn't useful in practice when in the inspector, you can't use it, so why is displaying the value incorrectly needed? |
What even is this comparison?
Because everywhere else it's displayed like this. |
|
Regardless I'm against this change because it's not correct to the value, and how it's printed is irrelevant IMO as the value isn't used from here But won't reject it but I don't think it's appropriate based on the justifications Regardless I don't think it's appropriate to cherry pick this enhancement, or call it a bug |
What problem(s) does this PR solve?
Additional information
ObjectIDs ofRefCountedobjects use their first bit to flag themselves as such. This means that their ID will show as a negative value. This PR fixesEditorPropertyObjectIDassuming that they're always positive.