Commit: 266491807e34e24a9337fa7f3655bd0929dfd633
Author: Kévin Dietrich
Date: Thu Apr 7 12:16:01 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB266491807e34e24a9337fa7f3655bd0929dfd633
Convert rotation angles from degrees to radians.
===================================================================
M source/blender/alembic/intern/abc_object.cc
===================================================================
diff --git a/source/blender/alembic/intern/abc_object.cc
b/source/blender/alembic/intern/abc_object.cc
index dcc3f80..c530336 100644
--- a/source/blender/alembic/intern/abc_object.cc
+++ b/source/blender/alembic/intern/abc_object.cc
@@ -362,6 +362,10 @@ void AbcObjectReader::readObjectMatrix(const float time)
const
m_object->rot[1] = xs.getYRotation();
m_object->rot[2] = xs.getZRotation();
+ for (int i = 0; i < 3; ++i) {
+ m_object->rot[i] *= M_PI / 180.0f;
+ }
+
DAG_id_tag_update(&(m_object->id), OB_RECALC_OB);
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs