examples: evas: fix else block by adding needed parenthesis
This was broken since over a year. Happened during the automatic eo4 migration in f21ade6123b9053fca8d1632644c48525a99d6e0. Thanks goes to the gcc warning misleading-indentation: evas-3d-shadows.c:163:4: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] else ^~~~ evas-3d-shadows.c:165:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’ evas_canvas3d_node_look_at_set(scene->mediator, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 3.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 5.0, 0.0);
This commit is contained in:
parent
770a31371a
commit
425a0b2e39
|
@ -161,8 +161,10 @@ _animate_scene(void *data)
|
|||
if (angle > 360) angle = 0.0;
|
||||
}
|
||||
else
|
||||
evas_canvas3d_node_position_set(scene->mediator, 0.0, 6.0, 12.0);
|
||||
evas_canvas3d_node_look_at_set(scene->mediator, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 3.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 5.0, 0.0);
|
||||
{
|
||||
evas_canvas3d_node_position_set(scene->mediator, 0.0, 6.0, 12.0);
|
||||
evas_canvas3d_node_look_at_set(scene->mediator, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 3.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 5.0, 0.0);
|
||||
}
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue