mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix allowing textures to be resized smaller
This commit is contained in:
parent
9d137295f6
commit
6d2580e3f4
@ -359,7 +359,9 @@ determine_size() {
|
|||||||
// However, we make a special exception: if it would have fit
|
// However, we make a special exception: if it would have fit
|
||||||
// without rounding up the UV's, then screw rounding it up and
|
// without rounding up the UV's, then screw rounding it up and
|
||||||
// just leave it alone.
|
// 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);
|
compute_size_from_uvs(min_uv, max_uv);
|
||||||
if (_position._x_size <= _placed._x_size &&
|
if (_position._x_size <= _placed._x_size &&
|
||||||
_position._y_size <= _placed._y_size &&
|
_position._y_size <= _placed._y_size &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user