anegostudios / vsmodelcreator

Vintage Story Model Creator
Other
69 stars 15 forks source link

Scaling Broken #60

Open tenabraex opened 4 years ago

tenabraex commented 4 years ago

When you scale a model (deselect scale Uvs) the model will look visually correct initially.

e1

However if you then click on a UV it will automatically adjust to the new scale, breaking it in relation to the new model size / current texture size.

e2

This also happens automagically on re-opening the file, so once you scale a model then re-open it, the UVs will be broken (and can't be fixed because they're now out of scale.

e3

tenabraex commented 4 years ago

Ok im pretty sure this happens when you've got any kind of custom UV, whether that be turning off auto-unwrap and moving a portion of a UV, or disabling auto-resolution and resizing/inverting one.

The scale doesn't know what to do with those textures so it always rescales them... for some reason when you initially do it, it works fine, but when you reload the model it will have auto-resolutioned those pieces regardless.

tenabraex commented 4 years ago

maaaybe an 'easy' solution would be to have the rescale function (with rescale turned off) disable auto-unwrap and auto-resolution on all pieces so they don't try to auto-resolution if you try to edit them / reload the mesh.