aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorMelanie2012-08-01 23:03:03 +0100
committerMelanie2012-08-01 23:03:03 +0100
commitecffcf7f65151a45b6396354d66fec70a7f3bad8 (patch)
treec2b98c522344cf713421b21ddb4452e537396f5a /OpenSim/Region/Framework
parentMerge branch 'master' into careminster (diff)
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC-ecffcf7f65151a45b6396354d66fec70a7f3bad8.zip
opensim-SC-ecffcf7f65151a45b6396354d66fec70a7f3bad8.tar.gz
opensim-SC-ecffcf7f65151a45b6396354d66fec70a7f3bad8.tar.bz2
opensim-SC-ecffcf7f65151a45b6396354d66fec70a7f3bad8.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/Framework/Scenes/Scene.cs OpenSim/Region/Physics/Manager/PhysicsScene.cs
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index f7d74db..3a28d42 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -5816,5 +5816,21 @@ Environment.Exit(1);
5816 { 5816 {
5817 GC.Collect(); 5817 GC.Collect();
5818 } 5818 }
5819
5820 // Wrappers to get physics modules retrieve assets. Has to be done this way
5821 // because we can't assign the asset service to physics directly - at the
5822 // time physics are instantiated it's not registered but it will be by
5823 // the time the first prim exists.
5824 public void PhysicsRequestAsset(UUID assetID, AssetReceivedDelegate callback)
5825 {
5826 AssetService.Get(assetID.ToString(), callback, PhysicsAssetReceived);
5827 }
5828
5829 private void PhysicsAssetReceived(string id, Object sender, AssetBase asset)
5830 {
5831 AssetReceivedDelegate callback = (AssetReceivedDelegate)sender;
5832
5833 callback(asset);
5834 }
5819 } 5835 }
5820} 5836}