aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/world/Entity.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/world/Entity.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/world/Entity.cs b/src/world/Entity.cs
index ab07fd6..92ab2da 100644
--- a/src/world/Entity.cs
+++ b/src/world/Entity.cs
@@ -14,6 +14,7 @@ namespace OpenSim.world
14 protected Quaternion rotation; 14 protected Quaternion rotation;
15 protected string name; 15 protected string name;
16 protected List<Entity> children; 16 protected List<Entity> children;
17 public bool needupdate;
17 18
18 public Entity() 19 public Entity()
19 { 20 {
@@ -29,7 +30,8 @@ namespace OpenSim.world
29 // Do any per-frame updates needed that are applicable to every type of entity 30 // Do any per-frame updates needed that are applicable to every type of entity
30 foreach (Entity child in children) 31 foreach (Entity child in children)
31 { 32 {
32 child.update(); 33 if(child.needupdate)
34 child.update();
33 } 35 }
34 } 36 }
35 37