rename Scene.m_physicalPrim to PhysicalPrims since its public and access external as a property
parent
292ab783e4
commit
e98e580900
|
@ -77,7 +77,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// Controls whether physics can be applied to prims. Even if false, prims still have entries in a
|
/// Controls whether physics can be applied to prims. Even if false, prims still have entries in a
|
||||||
/// PhysicsScene in order to perform collision detection
|
/// PhysicsScene in order to perform collision detection
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool m_physicalPrim;
|
public bool PhysicalPrims { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Controls whether prims can be collided with.
|
/// Controls whether prims can be collided with.
|
||||||
|
@ -674,7 +674,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
// TODO: Change default to true once the feature is supported
|
// TODO: Change default to true once the feature is supported
|
||||||
m_usePreJump = startupConfig.GetBoolean("enableprejump", false);
|
m_usePreJump = startupConfig.GetBoolean("enableprejump", false);
|
||||||
|
|
||||||
m_physicalPrim = startupConfig.GetBoolean("physical_prim", true);
|
PhysicalPrims = startupConfig.GetBoolean("physical_prim", true);
|
||||||
CollidablePrims = startupConfig.GetBoolean("collidable_prim", true);
|
CollidablePrims = startupConfig.GetBoolean("collidable_prim", true);
|
||||||
|
|
||||||
m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys);
|
m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys);
|
||||||
|
|
|
@ -1772,7 +1772,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// <param name="isNew"></param>
|
/// <param name="isNew"></param>
|
||||||
public void DoPhysicsPropertyUpdate(bool UsePhysics, bool isNew)
|
public void DoPhysicsPropertyUpdate(bool UsePhysics, bool isNew)
|
||||||
{
|
{
|
||||||
if (!ParentGroup.Scene.m_physicalPrim && UsePhysics)
|
if (!ParentGroup.Scene.PhysicalPrims && UsePhysics)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (IsJoint())
|
if (IsJoint())
|
||||||
|
|
Loading…
Reference in New Issue