Cleanup: redundant float conversions
This commit is contained in:
parent
fea70a406b
commit
d9f575eb17
|
@ -376,7 +376,7 @@ def grid_gen( sub_d, size_me, options ):
|
|||
faces = []
|
||||
edgeloop_prev = []
|
||||
|
||||
delta = size_me / float(sub_d - 1)
|
||||
delta = size_me / (sub_d - 1)
|
||||
start = -(size_me / 2.0)
|
||||
|
||||
for row_x in range(sub_d):
|
||||
|
|
|
@ -178,8 +178,8 @@ class AddZFunctionSurface(bpy.types.Operator):
|
|||
verts = []
|
||||
faces = []
|
||||
|
||||
delta_x = size_x / float(div_x - 1)
|
||||
delta_y = size_y / float(div_y - 1)
|
||||
delta_x = size_x / (div_x - 1)
|
||||
delta_y = size_y / (div_y - 1)
|
||||
start_x = -(size_x / 2.0)
|
||||
start_y = -(size_y / 2.0)
|
||||
|
||||
|
|
|
@ -1530,7 +1530,7 @@ def parse_animation( armature, udk_bones, actions_to_export, psa ):
|
|||
vkey.Orientation = quat
|
||||
|
||||
# frame delta = 1.0 / fps
|
||||
vkey.Time = 1.0 / float(anim_rate) # according to C++ header this is "disregarded"
|
||||
vkey.Time = 1.0 / anim_rate # according to C++ header this is "disregarded"
|
||||
|
||||
psa.AddRawKey(vkey)
|
||||
|
||||
|
|
|
@ -1009,7 +1009,7 @@ def write_pov(filename, scene=None, info_callback=None):
|
|||
focal_point = camera.data.dof_distance
|
||||
|
||||
# compute resolution
|
||||
Qsize = float(render.resolution_x) / float(render.resolution_y)
|
||||
Qsize = render.resolution_x / render.resolution_y
|
||||
tabWrite("#declare camLocation = <%.6f, %.6f, %.6f>;\n" %
|
||||
matrix.translation[:])
|
||||
tabWrite("#declare camLookAt = <%.6f, %.6f, %.6f>;\n" %
|
||||
|
|
Loading…
Reference in New Issue