[Bf-blender-cvs] [8ae8b62] master: Use Python3.5's unpacking generalizations
Campbell Barton
noreply at git.blender.org
Fri Dec 11 08:21:22 CET 2015
Commit: 8ae8b62a0ed148863e8b64480a0c15f1d068fbf5
Author: Campbell Barton
Date: Fri Dec 11 18:14:02 2015 +1100
Branches: master
https://developer.blender.org/rB8ae8b62a0ed148863e8b64480a0c15f1d068fbf5
Use Python3.5's unpacking generalizations
===================================================================
M release/scripts/startup/bl_operators/rigidbody.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/rigidbody.py b/release/scripts/startup/bl_operators/rigidbody.py
index 237c2d5..750a5b0 100644
--- a/release/scripts/startup/bl_operators/rigidbody.py
+++ b/release/scripts/startup/bl_operators/rigidbody.py
@@ -163,7 +163,7 @@ class BakeToKeyframes(Operator):
elif rot_mode == 'AXIS_ANGLE':
# this is a little roundabout but there's no better way right now
aa = mat.to_quaternion().to_axis_angle()
- obj.rotation_axis_angle = (aa[1], ) + aa[0][:]
+ obj.rotation_axis_angle = (aa[1], *aa[0])
else: # euler
# make sure euler rotation is compatible to previous frame
# NOTE: assume that on first frame, the starting rotation is appropriate
More information about the Bf-blender-cvs
mailing list