diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-10-08 11:33:50 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-10-08 11:33:50 +0800 |
commit | 344ed9ec6ca8fd7ed78b5b2d309b52f570256ffa (patch) | |
tree | 5c6405cd0219d4dc8bbe32cd2491092c49cdae3a /scene/3d/decal.cpp | |
parent | 18177828ad97286ca88cbdcfb763c967858d051b (diff) |
Remove leading spaces from enumerator name hints
For `PROPERTY_HINT_ENUM` properties, enumerator names can be provided as
a comma separated list. There're a few properties that add leading
spaces to the names (e.g. `First, Second, Third`).
These spaces are included in the Inspector dropdown, which is
unexpected.
It's better to leave the surrounding spaces untouched because it could
be part of the resulting string value (the variable is a string enum).
And most other enum hints don't contain surrounding whitespaces.
This PR removes the spaces and documents this `PROPERTY_HINT_ENUM`
behavior.
Diffstat (limited to 'scene/3d/decal.cpp')
0 files changed, 0 insertions, 0 deletions