aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/NHibernate/TextureUserType.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data/NHibernate/TextureUserType.cs')
-rw-r--r--OpenSim/Data/NHibernate/TextureUserType.cs12
1 files changed, 2 insertions, 10 deletions
diff --git a/OpenSim/Data/NHibernate/TextureUserType.cs b/OpenSim/Data/NHibernate/TextureUserType.cs
index b688a16..dac7c75 100644
--- a/OpenSim/Data/NHibernate/TextureUserType.cs
+++ b/OpenSim/Data/NHibernate/TextureUserType.cs
@@ -49,16 +49,8 @@ namespace OpenSim.Data.NHibernate
49 49
50 public object DeepCopy(object texture) 50 public object DeepCopy(object texture)
51 { 51 {
52 if (texture == null) 52 byte[] bytes = ((LLObject.TextureEntry)texture).ToBytes();
53 { 53 return new LLObject.TextureEntry(bytes, 0, bytes.Length);
54 // TODO: should parametrize this texture out
55 return new LLObject.TextureEntry(new LLUUID("89556747-24cb-43ed-920b-47caed15465f"));
56 }
57 else
58 {
59 byte[] bytes = ((LLObject.TextureEntry)texture).ToBytes();
60 return new LLObject.TextureEntry(bytes, 0, bytes.Length);
61 }
62 } 54 }
63 55
64 public object Disassemble(object texture) 56 public object Disassemble(object texture)