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

@ -1302,9 +1302,9 @@ String TSShapeLoader::getFormatExtensions()
{
// "*.dsq TAB *.dae TAB
StringBuilder output;
for(U32 n = 0; n < TSShape::sRegistrations.size(); ++n)
for(U32 n = 0; n < TSShape::getShapeRegistrations().size(); ++n)
{
TSShape::ShapeRegistration reg = TSShape::sRegistrations[n];
TSShape::ShapeRegistration reg = TSShape::getShapeRegistrations()[n];
for (U32 i = 0; i < reg.extensions.size(); i++)
{
TSShape::ShapeFormat format = reg.extensions[i];
@ -1320,9 +1320,9 @@ String TSShapeLoader::getFormatFilters()
{
// "DSQ Files|*.dsq|COLLADA Files|*.dae|"
StringBuilder output;
for (U32 n = 0; n < TSShape::sRegistrations.size(); ++n)
for (U32 n = 0; n < TSShape::getShapeRegistrations().size(); ++n)
{
TSShape::ShapeRegistration reg = TSShape::sRegistrations[n];
TSShape::ShapeRegistration reg = TSShape::getShapeRegistrations()[n];
for (U32 i = 0; i < reg.extensions.size(); i++)
{
TSShape::ShapeFormat format = reg.extensions[i];