cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=4dd2b8921349a45be096d583be1dd4837f87a930
commit 4dd2b8921349a45be096d583be1dd4837f87a930 Author: perepelits.m <perepelit...@samsung.com> Date: Thu Nov 6 06:03:55 2014 +0100 evas: fix quaternion initiation for node, which isn't a root node Summary: Default orientation of node should be corrected, because its zero rotation matrix multiplies on rotation matrix of its children node and we also get zero orientation for children, so the vector of orientation should be non-zero @fix Reviewers: Hermet, raster, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1647 Signed-off-by: Cedric BAIL <ced...@osg.samsung.com> --- src/lib/evas/canvas/evas_3d_node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_3d_node.c b/src/lib/evas/canvas/evas_3d_node.c index cb37f92..7b30486 100644 --- a/src/lib/evas/canvas/evas_3d_node.c +++ b/src/lib/evas/canvas/evas_3d_node.c @@ -785,7 +785,7 @@ _evas_3d_node_constructor(Eo *obj, Evas_3D_Node_Data *pd, Evas_3D_Node_Type type eo_do(obj, evas_3d_object_type_set(EVAS_3D_OBJECT_TYPE_NODE)); evas_vec3_set(&pd->position, 0.0, 0.0, 0.0); - evas_vec4_set(&pd->orientation, 0.0, 0.0, 0.0, 0.0); + evas_vec4_set(&pd->orientation, 0.0, 0.0, 0.0, 1.0); evas_vec3_set(&pd->scale, 1.0, 1.0, 1.0); evas_vec3_set(&pd->position_world, 0.0, 0.0, 0.0); --