6 lines
269 B
Python
6 lines
269 B
Python
|
# Compute local object transformation matrix:
|
||
|
if obj.rotation_mode == 'QUATERNION':
|
||
|
matrix = mathutils.Matrix.LocRotScale(obj.location, obj.rotation_quaternion, obj.scale)
|
||
|
else:
|
||
|
matrix = mathutils.Matrix.LocRotScale(obj.location, obj.rotation_euler, obj.scale)
|