diff --git a/pandatool/src/egg-palettize/texturePlacement.cxx b/pandatool/src/egg-palettize/texturePlacement.cxx index 6a1965b7ac..4d976c57e9 100644 --- a/pandatool/src/egg-palettize/texturePlacement.cxx +++ b/pandatool/src/egg-palettize/texturePlacement.cxx @@ -359,7 +359,9 @@ determine_size() { // However, we make a special exception: if it would have fit // without rounding up the UV's, then screw rounding it up and // just leave it alone. - if (pal->_round_uvs) { + if ((_position._x_size > _placed._x_size || + _position._y_size > _placed._y_size) && + pal->_round_uvs) { compute_size_from_uvs(min_uv, max_uv); if (_position._x_size <= _placed._x_size && _position._y_size <= _placed._y_size &&