Evas: fix camera node adding to scene

Summary: While making new changes after rewieving D3710 we met this bug again, removing eo_unref is the best way to fix it because _eo_ref_replace from D3021 makes nothing special.

Reviewers: cedric, raster, Hermet

Subscribers: jpeg, artem.popov

Differential Revision: https://phab.enlightenment.org/D3745

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
perepelits.m 2016-03-04 15:58:29 -08:00 committed by Cedric BAIL
parent 41b8a320a0
commit 74161be6f8
1 changed files with 0 additions and 2 deletions

View File

@ -119,14 +119,12 @@ _evas_canvas3d_scene_camera_node_set(Eo *obj, Evas_Canvas3D_Scene_Data *pd, Evas
if (pd->camera_node)
{
evas_canvas3d_node_scene_camera_del(pd->camera_node, obj);
eo_unref(pd->camera_node);
}
pd->camera_node = node;
if (node)
{
eo_unref(node);
evas_canvas3d_node_scene_camera_add(node, obj);
}