forked from enlightenment/efl
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:
parent
90ba56b1ff
commit
4dd2b89213
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue