Engine icon indicating copy to clipboard operation
Engine copied to clipboard

Bug: Model skin resetting when changing the model name

Open darvil82 opened this issue 2 years ago • 2 comments

Describe the bug

When the model name of a prop entity is changed, the skin property is reset to the default value.

To Reproduce

  1. Open a map
  2. Create a prop with a model and change its skin
  3. Change the model name of the prop entity
  4. The skin property resets

Issue Map

Any

Expected Behavior

The skin property should not change.

Operating System

No response

darvil82 avatar Apr 22 '23 22:04 darvil82

Clarification: This occurs when browsing for a new model. Changing the name keyvalue manually does not reset the skin keyvalue.

darvil82 avatar Jan 17 '24 02:01 darvil82

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)

vrad-exe avatar Feb 15 '24 09:02 vrad-exe