Skip to content
Snippets Groups Projects
Commit e41ec5e2 authored by Campbell Barton's avatar Campbell Barton
Browse files

- 3ds now selects all objects on import

- fbx default use_selected to False
parent 591821c9
No related branches found
No related tags found
No related merge requests found
...@@ -788,6 +788,9 @@ def load_3ds(filepath, ...@@ -788,6 +788,9 @@ def load_3ds(filepath,
print("importing 3DS: %r..." % (filepath), end="") print("importing 3DS: %r..." % (filepath), end="")
if bpy.ops.object.select_all.poll():
bpy.ops.object.select_all(action='DESELECT')
time1 = time.clock() time1 = time.clock()
# time1 = Blender.sys.time() # time1 = Blender.sys.time()
...@@ -844,6 +847,8 @@ def load_3ds(filepath, ...@@ -844,6 +847,8 @@ def load_3ds(filepath,
if ob.parent is None: if ob.parent is None:
ob.matrix_world = ob.matrix_world * global_matrix ob.matrix_world = ob.matrix_world * global_matrix
for ob in importedObjects:
ob.select = True
# Done DUMMYVERT # Done DUMMYVERT
""" """
......
...@@ -56,7 +56,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper): ...@@ -56,7 +56,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper):
# List of operator properties, the attributes will be assigned # List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling. # 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) # 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) 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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment