Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2006-11-27 04:05:44 +0300
committerJoseph Eagar <joeedh@gmail.com>2006-11-27 04:05:44 +0300
commit7101e76d9caeb305c6741bc60feb791566e4854c (patch)
tree0052aa5111cec7096fcd7c0a684727dd5fc33498 /release/scripts/md2_export.py
parentb462c66d2e05f2eb5ad093e057d3d615cae6d297 (diff)
=md2_export.py small fix=
There was an integer division error in md2_export.py, where values were getting clamped to either 0 or 1. Fixed it by putting the appropriate vars in float(). Reported by deltab on IRC.
Diffstat (limited to 'release/scripts/md2_export.py')
-rw-r--r--release/scripts/md2_export.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/md2_export.py b/release/scripts/md2_export.py
index 162afd9ada0..18bf5d5ff81 100644
--- a/release/scripts/md2_export.py
+++ b/release/scripts/md2_export.py
@@ -1187,8 +1187,8 @@ def build_GL_commands(md2):
cmd=md2_GL_command()
s=md2.tex_coords[best_st[command_counter]].u
t=md2.tex_coords[best_st[command_counter]].v
- cmd.s=s/md2.skin_width
- cmd.t=t/md2.skin_height
+ cmd.s=s/float(md2.skin_width)
+ cmd.t=t/float(md2.skin_height)
cmd.vert_index=best_verts[command_counter]
num_commands+=3
cmd_list.cmd_list.append(cmd)