mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Rename SOG.HasChildPrim(uint) to SOG.ContainsPart(uint) to match existing ContainsPart method and remove method duplication.
HasChildPrim is also misleading since the 'root' prim can also be returned.
This commit is contained in:
@@ -860,7 +860,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
if (sog != null)
|
||||
{
|
||||
if (sog.HasChildPrim(localID))
|
||||
if (sog.ContainsPart(localID))
|
||||
{
|
||||
// m_log.DebugFormat(
|
||||
// "[SCENE GRAPH]: Found scene object {0} {1} {2} containing part with local id {3} in {4}. Returning.",
|
||||
@@ -888,7 +888,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (ent is SceneObjectGroup)
|
||||
{
|
||||
sog = (SceneObjectGroup)ent;
|
||||
if (sog.HasChildPrim(localID))
|
||||
if (sog.ContainsPart(localID))
|
||||
{
|
||||
lock (SceneObjectGroupsByLocalPartID)
|
||||
SceneObjectGroupsByLocalPartID[localID] = sog;
|
||||
@@ -926,7 +926,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (ent is SceneObjectGroup)
|
||||
{
|
||||
sog = (SceneObjectGroup)ent;
|
||||
if (sog.HasChildPrim(fullID))
|
||||
if (sog.ContainsPart(fullID))
|
||||
{
|
||||
lock (SceneObjectGroupsByFullPartID)
|
||||
SceneObjectGroupsByFullPartID[fullID] = sog;
|
||||
|
||||
Reference in New Issue
Block a user