mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-06-12 00:13:58 +00:00
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:
parent
0c2aa5328c
commit
e83bab90d7
4 changed files with 23 additions and 14 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue