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 <cedric@osg.samsung.com>
This commit is contained in:
perepelits.m 2014-11-06 06:03:55 +01:00 committed by Cedric BAIL
parent 90ba56b1ff
commit 4dd2b89213
1 changed files with 1 additions and 1 deletions

View File

@ -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);