Added an option to allow the user to export STLs using an arbitrary (custom) coordinate-space.
This is not exposed in the UI and is intended for script authors exporting content.
Problem
The current (3.1 official release) STL export tool is only able to export meshes using the global coordinate frame. For certain applications (creating URDF/SDF/MJCF files for robotics simulation tools) it is much easier to deal with meshes exported in the object's local coordinate frame.
Solution
Add an optional argument to the STL Export Python Operation to allow the user to choose a custom coordinate frame in which to export their object(s). If left unassigned, defaults to the old (global) behavior.
This argument is a FloatVectorProperty with subtype Matrix.