From 89fbdb0e82fffd3fc1551ec10c376972b9902003 Mon Sep 17 00:00:00 2001 From: Jim Radford Date: Sat, 22 Mar 2008 02:08:22 +0000 Subject: [PATCH] Applies patch from Mantis#175 courtest of lkalif - Fixes TestClient ImportCommand to handle light settings and sculpted prims properly. git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1689 52acb1d6-8a22-11de-b505-999d5b087335 --- .../TestClient/Commands/Prims/ImportCommand.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libsecondlife/examples/TestClient/Commands/Prims/ImportCommand.cs b/libsecondlife/examples/TestClient/Commands/Prims/ImportCommand.cs index 24cfc97a..bdde5cd7 100644 --- a/libsecondlife/examples/TestClient/Commands/Prims/ImportCommand.cs +++ b/libsecondlife/examples/TestClient/Commands/Prims/ImportCommand.cs @@ -189,7 +189,17 @@ namespace libsecondlife.TestClient // TODO: Is there a way to set all of this at once, and update more ObjectProperties stuff? Client.Objects.SetPosition(simulator, prim.LocalID, currentPosition); Client.Objects.SetTextures(simulator, prim.LocalID, currentPrim.Textures); - Client.Objects.SetLight(simulator, prim.LocalID, currentPrim.Light); + + if (currentPrim.Light.Intensity > 0) { + Client.Objects.SetLight(simulator, prim.LocalID, currentPrim.Light); + } + + Client.Objects.SetFlexible(simulator, prim.LocalID, currentPrim.Flexible); + + if (currentPrim.Sculpt.SculptTexture != LLUUID.Zero) { + Client.Objects.SetSculpt(simulator, prim.LocalID, currentPrim.Sculpt); + } + Client.Objects.SetFlexible(simulator, prim.LocalID, currentPrim.Flexible); if (!String.IsNullOrEmpty(currentPrim.Properties.Name))