From 33d32355a1712e53f402eab1aa4818712f6f5f2c Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Tue, 17 Jun 2008 17:23:00 +0000
Subject: * refactor: Remove largely duplicate code from
SceneXmlLoader.CreatePrimFromXml2()
---
OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 42df746..85351f4 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -494,8 +494,9 @@ namespace OpenSim.Region.Environment.Scenes
return m_velocity;
}
- set {
-
+
+ set
+ {
m_velocity = value;
if (PhysActor != null)
{
@@ -505,7 +506,6 @@ namespace OpenSim.Region.Environment.Scenes
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
}
}
-
}
}
@@ -913,9 +913,13 @@ namespace OpenSim.Region.Environment.Scenes
return newobject;
}
+ ///
+ /// Apply physics to this part.
+ ///
+ ///
+ ///
public void ApplyPhysics(uint rootObjectFlags, bool m_physicalPrim)
{
-
bool isPhysical = (((rootObjectFlags & (uint) LLObject.ObjectFlags.Physics) != 0) && m_physicalPrim);
bool isPhantom = ((rootObjectFlags & (uint) LLObject.ObjectFlags.Phantom) != 0);
--
cgit v1.1