소스 검색

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

Asad M. Zaman 22 년 전
부모
커밋
bcba0f6421
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
   tex.set_magfilter(EggTexture::FT_linear);
 
 
   EggTexture::WrapMode wrap_u = uRepeat > 0 ? EggTexture::WM_repeat : EggTexture::WM_clamp;
   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_u(wrap_u);
   tex.set_wrap_v(wrap_v);
   tex.set_wrap_v(wrap_v);