Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-14 12:49:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-14 12:49:26 +0400
commiteb4a266295c42cdd2f55b094eeed2478391edb4d (patch)
treee28982aa91d70e0d31d830cf4f517f6f164f0558 /io_scene_3ds
parent0c7f5634e314657619cbb7e01cb37c2eb54fbfc3 (diff)
common option to export paths for FBX and OBJ
Diffstat (limited to 'io_scene_3ds')
-rw-r--r--io_scene_3ds/export_3ds.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/io_scene_3ds/export_3ds.py b/io_scene_3ds/export_3ds.py
index 162e30de..bf7bd990 100644
--- a/io_scene_3ds/export_3ds.py
+++ b/io_scene_3ds/export_3ds.py
@@ -893,6 +893,7 @@ def save(operator, context, filepath="",
import bpy
import time
+ import io_utils
from io_utils import create_derived_objects, free_derived_objects
'''Save the Blender scene to a 3ds file.'''
@@ -901,8 +902,6 @@ def save(operator, context, filepath="",
time1 = time.clock()
# Blender.Window.WaitCursor(1)
- sce = context.scene
-
if bpy.ops.object.mode_set.poll():
bpy.ops.object.mode_set(mode='OBJECT')
@@ -921,15 +920,11 @@ def save(operator, context, filepath="",
kfdata = make_kfdata()
'''
- # Get all the supported objects selected in this scene:
- # ob_sel= list(sce.objects.context)
- # mesh_objects = [ (ob, me) for ob in ob_sel for me in (BPyMesh.getMeshFromObject(ob, None, True, False, sce),) if me ]
- # empty_objects = [ ob for ob in ob_sel if ob.type == 'Empty' ]
-
# Make a list of all materials used in the selected meshes (use a dictionary,
# each material is added once):
materialDict = {}
mesh_objects = []
+
scene = context.scene
if use_selection: