Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#24712] 3ds_import fix

Date:
2010-11-14 15:09
Priority:
3
State:
Closed
Submitted by:
Dominique Lorre (dlorre)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Import/Export
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
3ds_import fix
Detailed description
FIX to:
http://projects.blender.org/tracker/?func=detail&atid=264&aid=24626&group_id=9
[#24626] 3ds import assigns wrong positions to objects
and:
https://projects.blender.org/tracker/index.php?func=detail&aid=24547&group_id=9&atid=264
[#24547] 3DS import messes location, scale and rotation of meshes

line 289:
if contextMatrix_rot:
ob.matrix_world = contextMatrix_rot
ob.rotation_euler = (0,0,0)

line 607:
#contextMatrix_rot.resize4x4()
#print "MTX"
#print contextMatrix_rot
contextMatrix_rot.transpose()
#print contextMatrix_rot
#contextMatrix_tx = mathutils.Matrix.Translation(0.5
* Blender.mathutils.Vector(data[9:]))
#contextMatrix_tx.invert()


It's only a partial fix, but the object have correct translation and rotation. The scaling might still be wrong.

Explanation: Assigning matrix_world changes the objects rotation. It should be possible to achieve the same with only one matrix operation.

Followup

Message
  • Date: 2010-11-14 15:57
  • Sender: Ton Roosendaal
  • Assigned to Campbell, he moved both above mentioned reports to the todo tracker.
  • Date: 2010-11-15 01:25
  • Sender: Campbell Barton
  • Committed a fix r33070. this fixes the 2 reported blend files from previous reports.
    closing.
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
ResolutionInvestigate2010-11-15 01:25campbellbarton
close_date2010-11-15 01:252010-11-15 01:25campbellbarton
status_idOpen2010-11-15 01:25campbellbarton
ResolutionNone2010-11-14 15:57ton
assigned_tonone2010-11-14 15:57ton