Maniphest T31622

.3ds importer doesn't do anything with the constrain_size
Closed, Resolved

Assigned To
Campbell Barton (campbellbarton)
Authored By
Benjamin Lau (netjunki)
May 28 2012, 12:11 PM
Tags
  • Import/Export
  • BF Blender
Subscribers
Benjamin Lau (netjunki)
Campbell Barton (campbellbarton)
Sergey Sharybin (sergey)

Description

When importing a 3ds file from yepsketch.com the imported object was coming out way too big. I wanted to play around with importing objects using a scripts and found out that bpy.ops.import_scene.autodesk_3ds took a constrain_size parameter... but it didn't seem to have any effect. While digging through the code I discovered that the processing of this parameter is completely disabled.

I've attached a patch to fix the issue and a sample .3ds file which is scaled incorrectly for testing.

Event Timeline

Benjamin Lau (netjunki) edited a custom field.May 28 2012, 12:11 PM
Benjamin Lau (netjunki) attached 1 file(s): F20026: test.3ds.
Sergey Sharybin (sergey) added a comment.May 28 2012, 12:52 PM

Campbell, can you please check this patch? Thanks!

Campbell Barton (campbellbarton) added a comment.Sep 11 2012, 1:14 AM

fixed r3726. Sergey - applied patch with some edits.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Sep 11 2012, 1:14 AM