Browse Source

matched the same vRepeat condition to texture repeat/clamp as the original soft2egg

Asad M. Zaman 22 years ago
parent
commit
bcba0f6421
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pandatool/src/softegg/softToEggConverter.cxx

+ 1 - 1
pandatool/src/softegg/softToEggConverter.cxx

@@ -2024,7 +2024,7 @@ apply_texture_properties(EggTexture &tex, int uRepeat, int vRepeat) {
   tex.set_magfilter(EggTexture::FT_linear);
 
   EggTexture::WrapMode wrap_u = uRepeat > 0 ? EggTexture::WM_repeat : EggTexture::WM_clamp;
-  EggTexture::WrapMode wrap_v = vRepeat > 0 ? EggTexture::WM_repeat : EggTexture::WM_clamp;
+  EggTexture::WrapMode wrap_v = vRepeat > 1 ? EggTexture::WM_repeat : EggTexture::WM_clamp;
 
   tex.set_wrap_u(wrap_u);
   tex.set_wrap_v(wrap_v);