e_comp_object: Add transp object as a member object of smart object 99/255099/6
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 10 Mar 2021 08:42:29 +0000 (17:42 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 31 Mar 2021 03:28:25 +0000 (03:28 +0000)
Seeing "smart_member_del" when transp object gets deleted, it seems like
transp object is supposed to be a member of smart object. I assume that
it was accidentally left out for some reason.

So, this patch will make transp object member of smart object.
Otherwise, it won't be able to track stack order of parent object if
parent object gets added to another smart object.

Change-Id: If465c24ef46aadf5f5b272354b009ab55e608689

src/bin/e_comp_object.c

index 65e1135..1a876e8 100644 (file)
@@ -5622,6 +5622,7 @@ e_comp_object_transform_transp_set(Evas_Object *obj, Eina_Bool set)
              evas_object_resize(o, 1, 1);
              evas_object_render_op_set(o, EVAS_RENDER_COPY);
              evas_object_color_set(o, 0, 0, 0, 0);
+             evas_object_smart_member_add(o, cw->smart_obj);
              if (cw->visible) evas_object_show(o);
 
              cw->transform_tranp_obj = o;