| 43 |
MyPart.TriggerChangedRexObjectProperties(); |
MyPart.TriggerChangedRexObjectProperties(); |
| 44 |
} |
} |
| 45 |
|
|
| 46 |
public void AddMaterial(uint index, UUID materialUUID, string materialURL) |
public void AddMaterial(uint index, UUID materialUUID, string materialURI) |
| 47 |
{ |
{ |
| 48 |
lock (this) |
lock (this) |
| 49 |
{ |
{ |
| 50 |
if (this.ContainsKey(index)) |
if (this.ContainsKey(index)) |
| 51 |
{ |
{ |
| 52 |
this[index].AssetID = materialUUID; |
this[index].AssetID = materialUUID; |
| 53 |
this[index].AssetURL = materialURL; |
this[index].AssetURI = materialURI; |
| 54 |
} |
} |
| 55 |
else |
else |
| 56 |
{ |
{ |
| 57 |
this[index] = new RexMaterialsDictionaryItem(); |
this[index] = new RexMaterialsDictionaryItem(); |
| 58 |
this[index].AssetID = materialUUID; |
this[index].AssetID = materialUUID; |
| 59 |
this[index].AssetURL = materialURL; |
this[index].AssetURI = materialURI; |
| 60 |
} |
} |
| 61 |
} |
} |
| 62 |
if (MyPart != null) |
if (MyPart != null) |
| 139 |
{ |
{ |
| 140 |
num = e.Key; |
num = e.Key; |
| 141 |
assetId = e.Value.AssetID; |
assetId = e.Value.AssetID; |
| 142 |
assetUrl = e.Value.AssetURL; |
assetUri = e.Value.AssetURI; |
| 143 |
} |
} |
| 144 |
|
|
| 145 |
private uint num = 0; |
private uint num = 0; |
| 159 |
set { assetId = value; } |
set { assetId = value; } |
| 160 |
} |
} |
| 161 |
|
|
| 162 |
private string assetUrl = String.Empty; |
private string assetUri = String.Empty; |
| 163 |
/// <summary> |
/// <summary> |
| 164 |
/// The url of the asset where it is located |
/// The uri of the asset where it is located |
| 165 |
/// </summary> |
/// </summary> |
| 166 |
public string AssetURL |
public string AssetURI |
| 167 |
{ |
{ |
| 168 |
get { return assetUrl; } |
get { return assetUri; } |
| 169 |
set { assetUrl = value; } |
set { assetUri = value; } |
| 170 |
} |
} |
| 171 |
|
|
| 172 |
private UUID rexObjectUUID; |
private UUID rexObjectUUID; |
| 181 |
|
|
| 182 |
public override string ToString() |
public override string ToString() |
| 183 |
{ |
{ |
| 184 |
return num.ToString() + ";" + assetId.ToString() + ";" + assetUrl; |
return num.ToString() + ";" + assetId.ToString() + ";" + assetUri; |
| 185 |
} |
} |
| 186 |
} |
} |
| 187 |
|
|