private void SerializationHandler(PrimSerialization serialization) { if (serialization.Prim != null && serialization.Prim.Parent != null) { m_log.Debug("Skipping serialization for child prim " + serialization.Prim.ID); return; } SerializedData item = new SerializedData { ContentType = PRIM_CONTENT_TYPE, Name = serialization.ID.ToString(), Section = "llprimitives", StoreID = m_scene.ID, Version = 1 }; // Removes set item.Data = null, signaling a delete. Adds set item.Data to the serialized prim data if (serialization.Prim != null) { item.Data = Encoding.UTF8.GetBytes(OSDParser.SerializeJsonString(LLPrimitive.SerializeLinkset(serialization.Prim))); } m_dataStore.BeginSerialize(item); }
private void SerializationHandler(PrimSerialization serialization) { if (serialization.Prim != null && serialization.Prim.Parent != null) { m_log.Debug("Skipping serialization for child prim " + serialization.Prim.ID); return; } SerializedData item = new SerializedData { ContentType = PRIM_CONTENT_TYPE, Name = serialization.ID.ToString(), Section = "llprimitives", StoreID = m_scene.ID, Version = 1 }; // Removes set item.Data = null, signaling a delete. Adds set item.Data to the serialized prim data if (serialization.Prim != null) item.Data = Encoding.UTF8.GetBytes(OSDParser.SerializeJsonString(LLPrimitive.SerializeLinkset(serialization.Prim))); m_dataStore.BeginSerialize(item); }