From e41ec5e2c24198039c05de81d3443857d7727606 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Thu, 26 May 2011 08:51:05 +0000 Subject: [PATCH] - 3ds now selects all objects on import - fbx default use_selected to False --- io_scene_3ds/import_3ds.py | 5 +++++ io_scene_fbx/__init__.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py index f054033d6..967ad2e92 100644 --- a/io_scene_3ds/import_3ds.py +++ b/io_scene_3ds/import_3ds.py @@ -788,6 +788,9 @@ def load_3ds(filepath, print("importing 3DS: %r..." % (filepath), end="") + if bpy.ops.object.select_all.poll(): + bpy.ops.object.select_all(action='DESELECT') + time1 = time.clock() # time1 = Blender.sys.time() @@ -844,6 +847,8 @@ def load_3ds(filepath, if ob.parent is None: ob.matrix_world = ob.matrix_world * global_matrix + for ob in importedObjects: + ob.select = True # Done DUMMYVERT """ diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 48391ac0a..94d6d7cc2 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -56,7 +56,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper): # List of operator properties, the attributes will be assigned # to the class instance from the operator settings before calling. - use_selection = BoolProperty(name="Selected Objects", description="Export selected objects on visible layers", default=True) + use_selection = BoolProperty(name="Selected Objects", description="Export selected objects on visible layers", default=False) # EXP_OBS_SCENE = BoolProperty(name="Scene Objects", description="Export all objects in this scene", default=True) global_scale = FloatProperty(name="Scale", description="Scale all data, (Note! some imports dont support scaled armatures)", min=0.01, max=1000.0, soft_min=0.01, soft_max=1000.0, default=1.0) -- GitLab