Moved Avatar appearance Factory to its own project so that the reference to MySQLDatabaseMapper could be removed from Region.Environment.

Added a using OpenSim.Framework.Data statement to MySQLDatabaseMapper , to try to fix the build problem that has been reported on the mailing list.
This commit is contained in:
MW
2008-03-25 18:48:07 +00:00
parent 8c74cf7758
commit c2ea7b99e1
9 changed files with 682 additions and 15 deletions

View File

@@ -1461,7 +1461,7 @@ namespace OpenSim.Region.Environment.Scenes
m_log.Warn("[AVATAR DEBUGGING]: Couldn't fetch avatar appearance from factory, please report this to the opensim mantis");
byte[] visualParams;
AvatarWearable[] wearables;
AvatarFactoryModule.GetDefaultAvatarAppearance(out wearables, out visualParams);
GetDefaultAvatarAppearance(out wearables, out visualParams);
appearance = new AvatarAppearance(client.AgentId, wearables, visualParams);
}
}
@@ -2723,5 +2723,25 @@ namespace OpenSim.Region.Environment.Scenes
}
#endregion
#region Avatar Appearance Default
public static void GetDefaultAvatarAppearance(out AvatarWearable[] wearables, out byte[] visualParams)
{
visualParams = GetDefaultVisualParams();
wearables = AvatarWearable.DefaultWearables;
}
private static byte[] GetDefaultVisualParams()
{
byte[] visualParams;
visualParams = new byte[218];
for (int i = 0; i < 218; i++)
{
visualParams[i] = 100;
}
return visualParams;
}
#endregion
}
}