gel.applet: Make evolving the physics world optional in 'freshen'.
This commit is contained in:
@@ -420,7 +420,7 @@ is
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
procedure freshen (Self : in out Item)
|
procedure freshen (Self : in out Item; evolve_World : in Boolean := True)
|
||||||
is
|
is
|
||||||
use type gel.Dolly.view;
|
use type gel.Dolly.view;
|
||||||
|
|
||||||
@@ -455,8 +455,11 @@ is
|
|||||||
the_world_Info : world_Info renames Element (world_Cursor).all;
|
the_world_Info : world_Info renames Element (world_Cursor).all;
|
||||||
camera_Cursor : camera_Vectors.Cursor := the_world_Info.Cameras.First;
|
camera_Cursor : camera_Vectors.Cursor := the_world_Info.Cameras.First;
|
||||||
begin
|
begin
|
||||||
-- the_world_Info.World.wait_on_evolve;
|
if evolve_World
|
||||||
the_world_Info.World.evolve;
|
then
|
||||||
|
-- the_world_Info.World.wait_on_evolve;
|
||||||
|
the_world_Info.World.evolve;
|
||||||
|
end if;
|
||||||
|
|
||||||
if Window_is_active
|
if Window_is_active
|
||||||
then
|
then
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ is
|
|||||||
procedure enable_Mouse (Self : access Item; detect_Motion : in Boolean);
|
procedure enable_Mouse (Self : access Item; detect_Motion : in Boolean);
|
||||||
|
|
||||||
procedure prepare (Self : access Item) is null;
|
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.
|
-- processes window events and then redraws the window.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user