The default mesh is now a resource loaded from a .tres file instead of building it manually each time on _init(). This reduces the script size by almost 80 lines with no drawbacks that I can think of.
I converted the _build_default_mesh() function into a separate file which saves the mesh as a resource in the addon folder, just in case it is still considered useful.
The default mesh is now a resource loaded from a
.tres
file instead of building it manually each time on_init()
. This reduces the script size by almost 80 lines with no drawbacks that I can think of.I converted the
_build_default_mesh()
function into a separate file which saves the mesh as a resource in the addon folder, just in case it is still considered useful.