fix for shape registration

The automatic global static was hitting a destructor on xcode, this seemed like it was being pedantic about name at first but then between runs the same issue would come back. With this change it is wrapped in a function to get the vector instead.
This commit is contained in:
marauder2k7 2026-06-07 22:10:52 +01:00
parent 0c2aa5328c
commit e83bab90d7
4 changed files with 23 additions and 14 deletions

View file

@ -122,8 +122,8 @@ public:
};
static void sRegisterFormat(const ShapeRegistration& reg);
static const ShapeRegistration* sFindRegInfo(const String& extension, bool exporting = false);
static Vector<ShapeRegistration> sRegistrations;
static const ShapeRegistration* sFindShapeRegInfo(const String& extension, bool exporting = false);
static Vector<ShapeRegistration>& getShapeRegistrations();
/// Nodes hold the transforms in the shape's tree. They are the bones of the skeleton.
struct Node