Fix missing include

This commit is contained in:
Campbell Barton 2014-07-22 11:53:24 +10:00
parent 2e436173aa
commit 88f126f2eb
1 changed files with 1 additions and 0 deletions

View File

@ -245,6 +245,7 @@ def object_image_guess(obj, bm=None):
me = obj.data
if bm is None:
if obj.mode == 'EDIT':
import bmesh
bm = bmesh.from_edit_mesh(me)
if bm is not None: