mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
whoops, screwed up embedded-dot problem again
This commit is contained in:
parent
a56a5b1be2
commit
53a6f48537
@ -219,7 +219,7 @@ PaletteImage(PalettePage *page, int index) :
|
||||
// to have a filename extension. Otherwise, an embedded dot in the
|
||||
// group's name would make everything following appear to be an
|
||||
// extension, which would get lost in the set_filename() call.
|
||||
if (_basename.find('.') == string::npos) {
|
||||
if (_basename.empty() || _basename[_basename.length() - 1] != '.') {
|
||||
_basename += '.';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user