mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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 it's not a valid size, tell PNMImage to resize it.
|
||||||
if (reqx != imgheader.get_x_size() || reqy != imgheader.get_y_size()) {
|
if (reqx != imgheader.get_x_size() || reqy != imgheader.get_y_size()) {
|
||||||
grutil_cat.warning() << "Rescaling heightfield image " << filename << " to "
|
grutil_cat.warning() << "Rescaling heightfield image " << filename
|
||||||
<< reqx << " by " << reqy << " pixels\n";
|
<< " from " << imgheader.get_x_size() << "x" << imgheader.get_y_size()
|
||||||
|
<< " to " << reqx << "x" << reqy << " pixels.\n";
|
||||||
_heightfield.set_read_size(reqx, reqy);
|
_heightfield.set_read_size(reqx, reqy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user