--- Operating System, Graphics card ---
Mac OsX macbookpro
--- Blender version with error, and version that worked ---
2.67b
--- Short description of error ---
If you set a parent child relationship between 2 objects the matrix_local is wrong, because has wrong orientation.
--- Steps for others to reproduce the error (preferably based on attached .blend file) ---
on the attached .blend check left wing and fuselage.
Description
Description
Event Timeline
Comment Actions
Can you explain why you think it's wrong? I don't see anything unusual.
According to the documentation, "matrix_local" is the "Parent relative transformation matrix".
Comment Actions
http://www.blender.org/documentation/blender_python_api_2_67_1/bpy.types.Object.html#bpy.types.Object.matrix_local
Comment Actions
You need to provide some evidance this is wrong, I checked your file,
# in the python console:
# Select 'LeftWing'
matrix = C.object.parent.matrix_world * C.object.matrix_local
# Add a new empty object
C.object.matrix_world = matrix
# Now the empty is placed at the origin and orientation of LeftWing
closing.