diff options
author | perepelits.m <perepelits.m@samsung.com> | 2014-11-06 06:03:55 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2014-11-06 06:03:59 +0100 |
commit | 4dd2b8921349a45be096d583be1dd4837f87a930 (patch) | |
tree | 6415f03ddcba916c2bb5d7815659c75546c5beed | |
parent | 90ba56b1ff6376876c0ffe536f7fd546206fa328 (diff) | |
download | efl-4dd2b8921349a45be096d583be1dd4837f87a930.tar.gz |
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>
-rw-r--r-- | src/lib/evas/canvas/evas_3d_node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_3d_node.c b/src/lib/evas/canvas/evas_3d_node.c index cb37f926c1..7b30486c26 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); |