gel.applet: Fix bug in mouse picking.
This commit is contained in:
@@ -806,7 +806,7 @@ is
|
|||||||
then
|
then
|
||||||
declare
|
declare
|
||||||
sprite_clicked_Event : constant gel.Events.sprite_click_down_Event := (mouse_Button => the_Event.Button,
|
sprite_clicked_Event : constant gel.Events.sprite_click_down_Event := (mouse_Button => the_Event.Button,
|
||||||
world_Site => Site_world_space);
|
world_Site => the_Collision.Site_world);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
the_Collision.near_Sprite.emit (sprite_clicked_Event);
|
the_Collision.near_Sprite.emit (sprite_clicked_Event);
|
||||||
@@ -814,7 +814,7 @@ is
|
|||||||
else
|
else
|
||||||
declare
|
declare
|
||||||
space_clicked_Event : constant gel.Events.space_click_down_Event := (mouse_Button => the_Event.Button,
|
space_clicked_Event : constant gel.Events.space_click_down_Event := (mouse_Button => the_Event.Button,
|
||||||
world_Site => Site_world_space);
|
world_Site => Intersect);
|
||||||
begin
|
begin
|
||||||
Self.Applet.emit (space_clicked_Event);
|
Self.Applet.emit (space_clicked_Event);
|
||||||
end;
|
end;
|
||||||
|
|||||||
Reference in New Issue
Block a user