Merge pull request #753 from Areloch/miscFixes20220327

Misc Fixes for 2022/03/27
This commit is contained in:
Brian Roberts 2022-03-27 04:36:49 -05:00 committed by GitHub
commit c64671ff91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 311 additions and 127 deletions

View file

@ -1373,6 +1373,11 @@ DefineEngineFunction(saveScaledImage, bool, (const char* bitmapSource, const cha
return false;
}
if (!Platform::isFile(bitmapSource))
{
return false;
}
//First, gotta check the extension, as we have some extra work to do if it's
//a DDS file
const char* ret = dStrrchr(bitmapSource, '.');

View file

@ -204,7 +204,7 @@ void GuiConvexEditorCtrl::setVisible( bool val )
mConvexHL = NULL;
mFaceHL = -1;
setSelection( NULL, -1 );
setSelection( NULL, -1 );
WorldEditor *wedit;
if ( Sim::findObject( "EWorldEditor", wedit ) )