diff options
author | Sean Dague | 2008-07-17 18:59:10 +0000 |
---|---|---|
committer | Sean Dague | 2008-07-17 18:59:10 +0000 |
commit | 6084a7ea3eb8fff88d57ca911b9b922a2f09ccf7 (patch) | |
tree | 048f753c7be960551f49c3f489b66b20371951b6 /OpenSim/Data/NHibernate/TextureUserType.cs | |
parent | git merge (diff) | |
download | opensim-SC_OLD-6084a7ea3eb8fff88d57ca911b9b922a2f09ccf7.zip opensim-SC_OLD-6084a7ea3eb8fff88d57ca911b9b922a2f09ccf7.tar.gz opensim-SC_OLD-6084a7ea3eb8fff88d57ca911b9b922a2f09ccf7.tar.bz2 opensim-SC_OLD-6084a7ea3eb8fff88d57ca911b9b922a2f09ccf7.tar.xz |
Revert "git merge"
This reverts commit 80e1c3742a3ba7eb9aa1686a242b36f64331095a.
Diffstat (limited to 'OpenSim/Data/NHibernate/TextureUserType.cs')
-rw-r--r-- | OpenSim/Data/NHibernate/TextureUserType.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Data/NHibernate/TextureUserType.cs b/OpenSim/Data/NHibernate/TextureUserType.cs index dac7c75..b688a16 100644 --- a/OpenSim/Data/NHibernate/TextureUserType.cs +++ b/OpenSim/Data/NHibernate/TextureUserType.cs | |||
@@ -49,8 +49,16 @@ namespace OpenSim.Data.NHibernate | |||
49 | 49 | ||
50 | public object DeepCopy(object texture) | 50 | public object DeepCopy(object texture) |
51 | { | 51 | { |
52 | byte[] bytes = ((LLObject.TextureEntry)texture).ToBytes(); | 52 | if (texture == null) |
53 | return new LLObject.TextureEntry(bytes, 0, bytes.Length); | 53 | { |
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 | } | ||
54 | } | 62 | } |
55 | 63 | ||
56 | public object Disassemble(object texture) | 64 | public object Disassemble(object texture) |