Linux fixes.

This commit is contained in:
Lubos Lenco 2016-10-26 09:56:26 +02:00
parent ccebc307d3
commit 186195089c
2 changed files with 5 additions and 2 deletions

View file

@ -1,7 +1,10 @@
# Translating operators from/to Armory player
import bpy
import utils
import barmory
try:
import barmory
except ImportError:
pass
def parse_operator(text):
if text == None:

View file

@ -332,7 +332,7 @@ def play_project(self, in_viewport):
else:
psize = 1
xoff = 0
yoff = 6
yoff = 22
x = bpy.context.window.x + (bpy.context.area.x - xoff) / psize
y = bpy.context.window.height + 45 - (bpy.context.area.y + bpy.context.area.height) / psize