From c8c166df88185920d098144dd4d8c894d2288a4c Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Mon, 25 Jul 2011 01:39:18 +0000
Subject: [PATCH] fix for missing import

---
 io_scene_3ds/export_3ds.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/io_scene_3ds/export_3ds.py b/io_scene_3ds/export_3ds.py
index d25672ef5..6c59aabc4 100644
--- a/io_scene_3ds/export_3ds.py
+++ b/io_scene_3ds/export_3ds.py
@@ -448,6 +448,7 @@ def make_material_texture_chunk(id, images):
 
     def add_image(img):
         import os
+        import bpy
         filename = bpy.path.basename(image.filepath)
         mat_sub_file = _3ds_chunk(MATMAPFILE)
         mat_sub_file.add_variable("mapfile", _3ds_string(sane_name(filename)))
-- 
GitLab