* add missing imports
* fix indentation: tabs -> spaces
This commit is contained in:
parent
b49bd51bc8
commit
81d9a3de43
@ -18,6 +18,7 @@
|
||||
|
||||
# <pep8 compliant>
|
||||
|
||||
import bpy
|
||||
from bpy.props import *
|
||||
|
||||
class ExportHelper:
|
||||
@ -44,6 +45,7 @@ class ImportHelper:
|
||||
|
||||
# limited replacement for BPyImage.comprehensiveImageLoad
|
||||
def load_image(imagepath, dirname):
|
||||
import os
|
||||
|
||||
if os.path.exists(imagepath):
|
||||
return bpy.data.images.load(imagepath)
|
||||
|
Loading…
Reference in New Issue
Block a user