If a part in an assembly has the wrong rotation after using Meshmatic , check if the profile you used to optimize the model used the "Instantiate Duplicates" tool. The "Instantiate Duplicates" tool can sometimes create errors in the rotation of the part. To quickly fix the issue, change the rotation for the part to 0,0,0 in your software.

