Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Components/Managers/ChiselModelManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ public void Rebuild(ChiselModelComponent model)
}

UpdateModelFlags(model);

if(model.AutoRebuildUVs)
{
ForceUpdateDelayedUVGeneration();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late comment, I was on vacation and then forgot .. 😬
Also, it's been a while since I looked at this particular code
So, DelayedUVGeneration works on all models, so this is not the right place for this.
In UpdateModels() DelayedUVGeneration is called, after all models are done, and it should already run if ForceUpdateDelayedUVGeneration has been called before
So just calling ForceUpdateDelayedUVGeneration here should be enough

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. I haven't tested it with just ForceUpdateDelayedUVGeneration() but if you are sure, we can resolve this :)

}

public bool IsDefaultModel(UnityEngine.Object obj)
Expand Down