feldoh / PawnStorages

Homebound - An experimental mod offering a variety of ways to tuck pawns away when they're not needed in order to preserve system resources
https://steamcommunity.com/sharedfiles/filedetails/?id=2674603226
MIT License
0 stars 2 forks source link

Statue rotation issue #2

Closed feldoh closed 9 months ago

feldoh commented 9 months ago

Pawn statues on the peculiar stands, because of the flip fix, a lot of other graphics seem to get stuck flipped the wrong way e.g. with left facing statues demon wings always show on the west instead of rotating with the pawn.

It looks like the issue is the mesh where we set UVs to false is actually a shared mesh so it messes with other spites. So the solution is to take a copy rather than messing with the base mesh. So simply swapping out

Mesh mesh = Graphic.MeshAt(rot);

for

Mesh mesh = Mesh.Instantiate(Graphic.MeshAt(rot));