From 757412a95414b6b93b8a116f2d7b05897936d6a4 Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Tue, 10 Jun 2014 20:09:49 +0800 Subject: [PATCH] Fix mistype ... in commit 2fe749bb23dd7873cd85017077e8995703a61f36 --- danmaku2ass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danmaku2ass.py b/danmaku2ass.py index 59cbd43..874b4dd 100755 --- a/danmaku2ass.py +++ b/danmaku2ass.py @@ -532,7 +532,7 @@ def ConvertFlashRotation(rotY, rotZ, X, Y, width, height): trY = Y*math.cos(rotZ)-X*math.sin(rotZ)+math.sin(rotZ)*width/2+(1-math.cos(rotZ))*height/2 trZ = (trX-width/2)*math.sin(rotY) FOV = width*math.tan(2*math.pi/9.0)/2 - try + try: scaleXY = FOV/(FOV+trZ) except ZeroDivisionError: logging.error('Rotation makes object behind the camera: trZ == %.0f' % trZ);