Check area

This commit is contained in:
Lubos Lenco 2017-01-03 00:28:05 +01:00
parent e957a78e1d
commit 1f13854270

View file

@ -459,6 +459,9 @@ class ArmoryPlayInViewportButton(bpy.types.Operator):
if not armutils.check_camera(self):
return {"CANCELLED"}
if context.area == None:
return {"CANCELLED"}
nodes_renderpath.check_default()
assets.invalidate_enabled = False