gel.applet: Make evolving the physics world optional in 'freshen'.

This commit is contained in:
Rod Kay
2023-04-28 21:58:49 +10:00
parent 1a381eb2ec
commit 2209ac7ca8
2 changed files with 7 additions and 4 deletions

View File

@@ -420,7 +420,7 @@ is
procedure freshen (Self : in out Item)
procedure freshen (Self : in out Item; evolve_World : in Boolean := True)
is
use type gel.Dolly.view;
@@ -455,8 +455,11 @@ is
the_world_Info : world_Info renames Element (world_Cursor).all;
camera_Cursor : camera_Vectors.Cursor := the_world_Info.Cameras.First;
begin
if evolve_World
then
-- the_world_Info.World.wait_on_evolve;
the_world_Info.World.evolve;
end if;
if Window_is_active
then

View File

@@ -117,7 +117,7 @@ is
procedure enable_Mouse (Self : access Item; detect_Motion : in Boolean);
procedure prepare (Self : access Item) is null;
procedure freshen (Self : in out Item);
procedure freshen (Self : in out Item; evolve_World : in Boolean := True);
--
-- processes window events and then redraws the window.