mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
Applied patch from David McCabe
This commit is contained in:
parent
8407030245
commit
0dd958c608
@ -627,8 +627,9 @@ set_heightfield(const Filename &filename, PNMFileType *ftype) {
|
||||
|
||||
// If it's not a valid size, tell PNMImage to resize it.
|
||||
if (reqx != imgheader.get_x_size() || reqy != imgheader.get_y_size()) {
|
||||
grutil_cat.warning() << "Rescaling heightfield image " << filename << " to "
|
||||
<< reqx << " by " << reqy << " pixels\n";
|
||||
grutil_cat.warning() << "Rescaling heightfield image " << filename
|
||||
<< " from " << imgheader.get_x_size() << "x" << imgheader.get_y_size()
|
||||
<< " to " << reqx << "x" << reqy << " pixels.\n";
|
||||
_heightfield.set_read_size(reqx, reqy);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user