mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #1634 from dakk/patch-1
Fix for "Crash on 'add a new mesh' Forest Editor action" #1633
This commit is contained in:
commit
b5d4eb9845
1 changed files with 7 additions and 3 deletions
|
|
@ -47,10 +47,14 @@ static void AddFiltersToDialog( GtkWidget *dialog, const char *filterList )
|
||||||
if ( NFDi_IsFilterSegmentChar(*p_filterList) )
|
if ( NFDi_IsFilterSegmentChar(*p_filterList) )
|
||||||
{
|
{
|
||||||
char typebufWildcard[NFD_MAX_STRLEN];
|
char typebufWildcard[NFD_MAX_STRLEN];
|
||||||
/* add another type to the filter */
|
|
||||||
assert( strlen(typebuf) > 0 );
|
|
||||||
assert( strlen(typebuf) < NFD_MAX_STRLEN-1 );
|
|
||||||
|
|
||||||
|
/* add another type to the filter */
|
||||||
|
if (strlen(typebuf) <= 0 || strlen(typebuf) > NFD_MAX_STRLEN-1)
|
||||||
|
{
|
||||||
|
p_filterList++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
snprintf( typebufWildcard, NFD_MAX_STRLEN, "*.%s", typebuf );
|
snprintf( typebufWildcard, NFD_MAX_STRLEN, "*.%s", typebuf );
|
||||||
AddTypeToFilterName( typebuf, filterName, NFD_MAX_STRLEN );
|
AddTypeToFilterName( typebuf, filterName, NFD_MAX_STRLEN );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue