diff options
Diffstat (limited to 'OpenSim/Region')
3 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs index 49a96f4..5143204 100644 --- a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs +++ b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs | |||
@@ -319,12 +319,14 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction | |||
319 | m_asset.Description = item.Description; | 319 | m_asset.Description = item.Description; |
320 | m_asset.Type = (sbyte)item.AssetType; | 320 | m_asset.Type = (sbyte)item.AssetType; |
321 | 321 | ||
322 | // We must always store the item at this point even if the asset hasn't finished uploading, in order | 322 | if (m_asset.FullID != UUID.Zero) |
323 | // to avoid a race condition when the appearance module retrieves the item to set the asset id in | 323 | { |
324 | // the AvatarAppearance structure. | 324 | // We must always store the item at this point even if the asset hasn't finished uploading, in order |
325 | item.AssetID = m_asset.FullID; | 325 | // to avoid a race condition when the appearance module retrieves the item to set the asset id in |
326 | if (item.AssetID != UUID.Zero) | 326 | // the AvatarAppearance structure. |
327 | item.AssetID = m_asset.FullID; | ||
327 | m_Scene.InventoryService.UpdateItem(item); | 328 | m_Scene.InventoryService.UpdateItem(item); |
329 | } | ||
328 | 330 | ||
329 | if (m_uploadState == UploadState.Complete) | 331 | if (m_uploadState == UploadState.Complete) |
330 | { | 332 | { |
diff --git a/OpenSim/Region/PhysicsModules/Ode/ODERayCastRequestManager.cs b/OpenSim/Region/PhysicsModules/Ode/ODERayCastRequestManager.cs index cd5dbf8..8d610f7 100644 --- a/OpenSim/Region/PhysicsModules/Ode/ODERayCastRequestManager.cs +++ b/OpenSim/Region/PhysicsModules/Ode/ODERayCastRequestManager.cs | |||
@@ -172,7 +172,7 @@ namespace OpenSim.Region.PhysicsModule.ODE | |||
172 | /// <param name="req"></param> | 172 | /// <param name="req"></param> |
173 | private void RayCast(ODERayCastRequest req) | 173 | private void RayCast(ODERayCastRequest req) |
174 | { | 174 | { |
175 | // NOTE: limit ray lenght or collisions will take all avaiable stack space | 175 | // NOTE: limit ray length or collisions will take all avaiable stack space |
176 | // this value may still be too large, depending on machine configuration | 176 | // this value may still be too large, depending on machine configuration |
177 | // of maximum stack | 177 | // of maximum stack |
178 | float len = req.length; | 178 | float len = req.length; |
diff --git a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs index 88d4d15..cee16bf 100644 --- a/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs +++ b/OpenSim/Region/PhysicsModules/Ode/OdeScene.cs | |||
@@ -28,7 +28,7 @@ | |||
28 | // changes for varsize regions | 28 | // changes for varsize regions |
29 | // note that raycasts need to have limited range | 29 | // note that raycasts need to have limited range |
30 | // (even in normal regions) | 30 | // (even in normal regions) |
31 | // or aplication thread stack may just blowup | 31 | // or application thread stack may just blowup |
32 | // see RayCast(ODERayCastRequest req) | 32 | // see RayCast(ODERayCastRequest req) |
33 | 33 | ||
34 | //#define USE_DRAWSTUFF | 34 | //#define USE_DRAWSTUFF |