diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-05-17 04:47:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-05-17 04:47:00 +0400 |
commit | fc6597fdcff430ba4251c9b22fa6d79f2d659d23 (patch) | |
tree | 4ca2f4bdcc6c2ac46d9598f0a223bce956b5a202 /release/scripts | |
parent | e41b68360541aa3419381f0aa2faba8ab7d73b25 (diff) |
Made import set the object layer to the current scene layer, applied the 3ds name to the object and the mesh.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/3ds_import.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/release/scripts/3ds_import.py b/release/scripts/3ds_import.py index 27c664c9859..09f03bdacd8 100644 --- a/release/scripts/3ds_import.py +++ b/release/scripts/3ds_import.py @@ -355,11 +355,13 @@ def process_next_chunk(file, previous_chunk, scn): if img: targetFace.image= img - ob = Object.New('Mesh', contextMesh.name) + tempName= contextObName + '_' + matName + bmesh.name= tempName + ob = Object.New('Mesh', tempName) ob.link(bmesh) ob.setMatrix(contextMatrix) - ob.Layers= scn.Layers scn.link(ob) + ob.Layers= scn.Layers ob.sel= 1 for matName, faces in myContextMeshMaterials.iteritems(): @@ -406,7 +408,6 @@ def process_next_chunk(file, previous_chunk, scn): #is it an object chunk? elif (new_chunk.ID==OBJECT): - 'elif (new_chunk.ID==OBJECT):' tempName= read_string(file) contextObName= getUniqueName( tempName ) new_chunk.bytes_read += len(tempName)+1 |