mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Fix NPC appearance setting to include attachments again
This commit is contained in:
@@ -99,8 +99,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
// Delete existing sp attachments
|
||||
scene.AttachmentsModule.DeleteAttachmentsFromScene(sp, false);
|
||||
|
||||
AvatarAppearance app = new AvatarAppearance(appearance, true);
|
||||
sp.Appearance = app;
|
||||
|
||||
// Set new sp appearance. Also sends to clients.
|
||||
scene.RequestModuleInterface<IAvatarFactoryModule>().SetAppearance(sp, new AvatarAppearance(appearance, true));
|
||||
scene.RequestModuleInterface<IAvatarFactoryModule>().SetAppearance(sp, app);
|
||||
|
||||
// Rez needed sp attachments
|
||||
scene.AttachmentsModule.RezAttachments(sp);
|
||||
|
||||
Reference in New Issue
Block a user