mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
remove terraindata abstraction layer, since we only have heightmap type
This commit is contained in:
@@ -91,7 +91,7 @@ namespace OpenSim.Region.CoreModules.Framework.DynamicAttributes.DAExampleModule
|
||||
OSDMap attrs = null;
|
||||
SceneObjectPart sop = m_scene.GetSceneObjectPart(groupId);
|
||||
|
||||
if (sop == null)
|
||||
if (sop == null || sop.DynAttrs == null)
|
||||
return true;
|
||||
|
||||
if (!sop.DynAttrs.TryGetStore(Namespace, StoreName, out attrs))
|
||||
|
||||
@@ -99,6 +99,8 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DOExampleModule
|
||||
private void OnObjectAddedToScene(SceneObjectGroup so)
|
||||
{
|
||||
SceneObjectPart rootPart = so.RootPart;
|
||||
if(rootPart.DynAttrs == null)
|
||||
return;
|
||||
|
||||
OSDMap attrs;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user