Skip to content

Commit

Permalink
Fixed a bug where collision mesh was not loaded when UUID field conta…
Browse files Browse the repository at this point in the history
…ined the real collision data.
  • Loading branch information
pallarim committed Oct 27, 2010
1 parent c5a6346 commit d874e58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ModularRex/RexFramework/RexObjectProperties.cs
Expand Up @@ -347,7 +347,7 @@ public string RexCollisionMeshURI
if (m_rexCollisionMeshURL != String.Empty && RexEventManager != null && oldValue != value)
RexEventManager.TriggerOnChangeCollisionUri(parentObjectID);

if (m_rexCollisionMeshURL == String.Empty)
if (m_rexCollisionMeshURL == UUID.Zero.ToString())
RexCollisionMeshUUID = UUID.Zero;
else
TriggerChangedRexObjectProperties();
Expand Down Expand Up @@ -475,7 +475,8 @@ public void SetRexPrimDataFromObject(RexObjectProperties source)
RexSelectPriority = source.RexSelectPriority;

RexAnimationPackageURI = source.RexAnimationPackageURI;
RexCollisionMeshURI = source.RexCollisionMeshURI;
if(source.RexCollisionMeshUUID == UUID.Zero)
RexCollisionMeshURI = source.RexCollisionMeshURI;
RexMeshURI = source.RexMeshURI;
RexParticleScriptURI = source.RexParticleScriptURI;
RexSoundURI = source.RexSoundURI;
Expand Down

0 comments on commit d874e58

Please sign in to comment.