Fix rigged mesh stack smashing