Engine
Engine copied to clipboard
Bug: Model skin resetting when changing the model name
Describe the bug
When the model name of a prop entity is changed, the skin property is reset to the default value.
To Reproduce
- Open a map
- Create a prop with a model and change its skin
- Change the model name of the prop entity
- The skin property resets
Issue Map
Any
Expected Behavior
The skin property should not change.
Operating System
No response
Clarification: This occurs when browsing for a new model. Changing the name keyvalue manually does not reset the skin keyvalue.
This is because it sets the skin to whatever skin was selected in the model browser, but the model browser always defaults to skin 0. It should probably be changed to default to whatever skin was set on the entity, so then when you select another model it's using the same one (assuming the new selected model has that skin number)