| 7 |
using ModularRex.RexNetwork; |
using ModularRex.RexNetwork; |
| 8 |
using Nini.Config; |
using Nini.Config; |
| 9 |
using OpenMetaverse; |
using OpenMetaverse; |
| 10 |
using OpenSim.Region.Environment.Interfaces; |
using OpenSim.Region.Framework.Interfaces; |
| 11 |
using OpenSim.Region.Environment.Scenes; |
using OpenSim.Region.Framework.Scenes; |
| 12 |
using OpenSim.Data.NHibernate; |
using OpenSim.Data.NHibernate; |
| 13 |
|
using OpenSim.Framework; |
| 14 |
|
using ModularRex.NHibernate; |
| 15 |
|
|
| 16 |
namespace ModularRex.RexParts |
namespace ModularRex.RexParts |
| 17 |
{ |
{ |
| 18 |
public class ModrexObjects : IRegionModule |
public class ModrexObjects : IRegionModule, IRexObjectPropertiesEventManager |
| 19 |
{ |
{ |
| 20 |
private static readonly ILog m_log = |
private static readonly ILog m_log = |
| 21 |
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
| 22 |
|
|
| 23 |
//private Dictionary<UUID,RexObjectProperties> m_objs = new Dictionary<UUID, RexObjectProperties>(); |
private RexObjectPropertiesManager RexObjectPropertiesCache = new RexObjectPropertiesManager(); |
| 24 |
private List<Scene> m_scenes = new List<Scene>(); |
private List<Scene> m_scenes = new List<Scene>(); |
| 25 |
|
|
| 26 |
private NHibernateRexObjectData m_db; |
private NHibernateRexObjectData m_db; |
| 27 |
private string m_db_connectionstring; |
private string m_db_connectionstring; |
| 28 |
|
|
| 29 |
|
public delegate void OnChangePythonClassDelegate(UUID id); |
| 30 |
public event OnChangePythonClassDelegate OnPythonClassChange; |
public event OnChangePythonClassDelegate OnPythonClassChange; |
| 31 |
|
|
| 32 |
public void Initialise(Scene scene, IConfigSource source) |
public void Initialise(Scene scene, IConfigSource source) |
| 34 |
m_scenes.Add(scene); |
m_scenes.Add(scene); |
| 35 |
|
|
| 36 |
scene.EventManager.OnClientConnect += EventManager_OnClientConnect; |
scene.EventManager.OnClientConnect += EventManager_OnClientConnect; |
| 37 |
|
scene.SceneContents.OnObjectDuplicate += SceneGraph_OnObjectDuplicate; |
| 38 |
|
scene.SceneContents.OnObjectRemove += SceneGraph_OnObjectRemove; |
| 39 |
|
|
| 40 |
|
scene.AddCommand(this, "modreximport", "load 0.4 rex database <connstring>", "conn string example: SQLiteDialect;SQLite20Driver;Data Source=beneath_the_waves.db;Version=3", HandleLoadRexLegacyData); |
| 41 |
|
|
| 42 |
if (m_db == null) |
if (m_db == null) |
| 43 |
{ |
{ |
| 69 |
if (client.TryGet(out rcv)) |
if (client.TryGet(out rcv)) |
| 70 |
{ |
{ |
| 71 |
rcv.OnRexObjectProperties += rcv_OnRexObjectProperties; |
rcv.OnRexObjectProperties += rcv_OnRexObjectProperties; |
| 72 |
|
rcv.OnPrimFreeData += rcv_OnPrimFreeData; |
| 73 |
//rcv.OnChatFromClient += rcv_OnChatFromClient; |
//rcv.OnChatFromClient += rcv_OnChatFromClient; |
| 74 |
|
|
| 75 |
// Send them the current Scene. |
// Send them the current Scene. |
| 77 |
} |
} |
| 78 |
} |
} |
| 79 |
|
|
| 80 |
|
private void rcv_OnPrimFreeData(IClientAPI sender, List<string> parameters) |
| 81 |
|
{ |
| 82 |
|
m_log.Info("[REXOBJS] Received Prim free data"); |
| 83 |
|
if (parameters.Count == 2) |
| 84 |
|
{ |
| 85 |
|
UUID primID = new UUID(parameters[0]); |
| 86 |
|
string data = parameters[1]; |
| 87 |
|
|
| 88 |
|
RexObjectProperties props = GetObject(primID); |
| 89 |
|
props.RexData = data; |
| 90 |
|
} |
| 91 |
|
else |
| 92 |
|
{ |
| 93 |
|
m_log.Warn("[REXOBJS] unexpected number of parameters"); |
| 94 |
|
} |
| 95 |
|
} |
| 96 |
|
|
| 97 |
|
void SceneGraph_OnObjectDuplicate(EntityBase original, EntityBase clone) |
| 98 |
|
{ |
| 99 |
|
RexObjectProperties origprops = GetObject(original.UUID); |
| 100 |
|
RexObjectProperties cloneprops = GetObject(clone.UUID); |
| 101 |
|
|
| 102 |
|
cloneprops.SetRexPrimDataFromObject(origprops); |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
void SceneGraph_OnObjectRemove(EntityBase obj) |
| 106 |
|
{ |
| 107 |
|
DeleteObject(obj.UUID); |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
|
| 111 |
//void rcv_OnChatFromClient(object sender, OpenSim.Framework.OSChatMessage e) |
//void rcv_OnChatFromClient(object sender, OpenSim.Framework.OSChatMessage e) |
| 112 |
//{ |
//{ |
| 113 |
// if (e.Message.StartsWith("/rexobj ")) |
// if (e.Message.StartsWith("/rexobj ")) |
| 139 |
} |
} |
| 140 |
} |
} |
| 141 |
|
|
| 142 |
void SendAllPropertiesToUser(RexClientView user) |
private void SendPreloadAssetsToUser(RexClientView user) |
| 143 |
{ |
{ |
| 144 |
if (m_db.Inizialized) |
try |
| 145 |
{ |
{ |
| 146 |
|
Scene ourScene = null; |
| 147 |
foreach (Scene s in m_scenes) |
foreach (Scene s in m_scenes) |
| 148 |
{ |
{ |
| 149 |
foreach (EntityBase e in s.Entities) |
if (user.Scene.RegionInfo.RegionHandle == s.RegionInfo.RegionHandle) |
| 150 |
|
ourScene = s; |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
if (ourScene != null) |
| 154 |
{ |
{ |
| 155 |
RexObjectProperties p = m_db.LoadObject(e.UUID); |
if (ourScene.Modules.ContainsKey("RexAssetPreload")) |
|
if (p != null) |
|
| 156 |
{ |
{ |
| 157 |
user.SendRexObjectProperties(e.UUID, p); |
RexAssetPreload module = (RexAssetPreload)ourScene.Modules["RexAssetPreload"]; |
| 158 |
//p.OnPythonClassChange += PythonClassNameChanged; |
if (module.PreloadAssetDictionary.Count > 0) |
|
if (p.RexClassName.Length > 0) |
|
| 159 |
{ |
{ |
| 160 |
s.GetSceneObjectPart(e.UUID).SetScriptEvents(e.UUID, (int)scriptEvents.touch_start); |
user.SendRexPreloadAssets(module.PreloadAssetDictionary); |
| 161 |
} |
} |
| 162 |
} |
} |
| 163 |
} |
} |
| 164 |
} |
} |
| 165 |
|
catch (Exception e) |
| 166 |
|
{ |
| 167 |
|
m_log.Error("[MODREXOBJECTS]: Sending preload assets failed.", e); |
| 168 |
} |
} |
| 169 |
} |
} |
| 170 |
|
|
| 171 |
private void PythonClassNameChanged(UUID id) |
void SendAllPropertiesToUser(RexClientView user) |
| 172 |
{ |
{ |
| 173 |
if (OnPythonClassChange != null) |
SendPreloadAssetsToUser(user); |
| 174 |
|
|
| 175 |
|
foreach (RexObjectProperties p in GetObjects()) |
| 176 |
{ |
{ |
| 177 |
OnPythonClassChange(id); |
user.SendRexObjectProperties(p.ParentObjectID, p); |
| 178 |
} |
} |
| 179 |
} |
} |
| 180 |
|
|
| 181 |
void rcv_OnRexObjectProperties(RexClientView sender, UUID id, RexObjectProperties props) |
void rcv_OnRexObjectProperties(IClientAPI sender, UUID id, RexObjectProperties props) |
| 182 |
{ |
{ |
| 183 |
m_log.Info("[REXOBJS] Received RexObjData for " + id); |
m_log.Info("[REXOBJS] Received RexObjData for " + id); |
| 184 |
if (props.ParentObjectID == UUID.Zero) |
if (props.ParentObjectID == UUID.Zero) |
| 185 |
props.ParentObjectID = id; |
props.ParentObjectID = id; |
| 186 |
|
|
| 187 |
props.PrintRexPrimdata(); // fixme, debugdata |
// debugdata props.PrintRexPrimdata(); |
|
|
|
|
// Before saving to db, check if values have changed from the previous values. |
|
|
RexObjectProperties oldprops = Load(id); |
|
|
|
|
|
m_db.StoreObject(props); |
|
|
|
|
|
// Compare values |
|
|
if (oldprops.RexClassName != props.RexClassName) |
|
|
PythonClassNameChanged(props.ParentObjectID); |
|
|
if (oldprops.RexScaleToPrim != props.RexScaleToPrim) |
|
|
ScaleToPrimChanged(id); |
|
|
if (oldprops.RexCollisionMeshUUID != props.RexCollisionMeshUUID) |
|
|
CollisionMeshChanged(id); |
|
| 188 |
|
|
| 189 |
SendPropertiesToAllUsers(id, props); |
RexObjectProperties currentprops = GetObject(id); |
| 190 |
|
currentprops.SetRexPrimDataFromObject(props); |
| 191 |
} |
} |
| 192 |
|
|
| 193 |
public void PostInitialise() |
public void PostInitialise() |
| 199 |
m_db.Initialise(m_db_connectionstring); |
m_db.Initialise(m_db_connectionstring); |
| 200 |
} |
} |
| 201 |
} |
} |
| 202 |
|
LoadRexObjectPropertiesToCache(); |
| 203 |
} |
} |
| 204 |
|
|
| 205 |
public void Close() |
public void Close() |
| 217 |
get { return true; } |
get { return true; } |
| 218 |
} |
} |
| 219 |
|
|
|
public RexObjectProperties Load(UUID id) |
|
|
{ |
|
|
RexObjectProperties robject = m_db.LoadObject(id); |
|
|
if (robject == null) |
|
|
{ |
|
|
robject = new RexObjectProperties(); |
|
|
robject.ParentObjectID = id; |
|
|
} |
|
|
return robject; |
|
|
} |
|
| 220 |
|
|
| 221 |
public void Save(RexObjectProperties obj) |
|
| 222 |
|
#region Trigger/handle rexobjectproperties events |
| 223 |
|
public void TriggerOnChangePythonClass(UUID id) |
| 224 |
{ |
{ |
| 225 |
m_db.StoreObject(obj); |
if (OnPythonClassChange != null) |
| 226 |
|
OnPythonClassChange(id); |
| 227 |
} |
} |
| 228 |
|
|
| 229 |
private void CollisionMeshChanged(UUID id) |
public void TriggerOnChangeCollisionMesh(UUID id) |
| 230 |
{ |
{ |
| 231 |
// tucofixme, add |
// tucofixme, add |
| 232 |
//if (!GlobalSettings.Instance.m_3d_collision_models) |
//if (!GlobalSettings.Instance.m_3d_collision_models) |
| 233 |
// return; |
// return; |
| 234 |
|
|
| 235 |
RexObjectProperties p = m_db.LoadObject(id); |
RexObjectProperties p = GetObject(id); |
|
if (p == null) |
|
|
{ |
|
|
m_log.Error("[REXOBJS] CollisionMeshChanged, no RexObjectProperties for id:" + id.ToString()); |
|
|
return; |
|
|
} |
|
|
|
|
| 236 |
SceneObjectPart sop = m_scenes[0].GetSceneObjectPart(id); |
SceneObjectPart sop = m_scenes[0].GetSceneObjectPart(id); |
| 237 |
if (sop == null) |
if (sop == null) |
| 238 |
{ |
{ |
| 239 |
m_log.Error("[REXOBJS] CollisionMeshChanged, no SceneObjectPart for id:" + id.ToString()); |
m_log.Error("[REXOBJS] TriggerOnChangeCollisionMesh, no SceneObjectPart for id:" + id.ToString()); |
| 240 |
return; |
return; |
| 241 |
} |
} |
| 242 |
|
|
| 243 |
if (sop.ParentGroup != null) |
if (sop.ParentGroup != null && sop.PhysActor is IRexPhysicsActor) |
| 244 |
{ |
{ |
|
if (sop.PhysActor != null) |
|
|
{ |
|
|
/* tucofixme, uncomment later |
|
| 245 |
if (p.RexCollisionMeshUUID != UUID.Zero) |
if (p.RexCollisionMeshUUID != UUID.Zero) |
| 246 |
RexUpdateCollisionMesh(id); |
RexUpdateCollisionMesh(id); |
| 247 |
else |
else |
| 248 |
sop.PhysActor.SetCollisionMesh(null, "", false); |
((IRexPhysicsActor)sop.PhysActor).SetCollisionMesh(null, "", false); |
|
*/ |
|
|
} |
|
| 249 |
} |
} |
| 250 |
} |
} |
| 251 |
|
|
| 252 |
private void ScaleToPrimChanged(UUID id) |
public void TriggerOnChangeScaleToPrim(UUID id) |
| 253 |
{ |
{ |
| 254 |
// tucofixme, add |
// tucofixme, add |
| 255 |
//if (!GlobalSettings.Instance.m_3d_collision_models) |
//if (!GlobalSettings.Instance.m_3d_collision_models) |
| 256 |
// return; |
// return; |
| 257 |
|
|
| 258 |
RexObjectProperties p = m_db.LoadObject(id); |
RexObjectProperties p = GetObject(id); |
|
if(p == null) |
|
|
{ |
|
|
m_log.Error("[REXOBJS] ScaleToPrimChanged, no RexObjectProperties for id:" + id.ToString()); |
|
|
return; |
|
|
} |
|
|
|
|
| 259 |
SceneObjectPart sop = m_scenes[0].GetSceneObjectPart(id); |
SceneObjectPart sop = m_scenes[0].GetSceneObjectPart(id); |
| 260 |
if (sop == null) |
if (sop == null) |
| 261 |
{ |
{ |
| 262 |
m_log.Error("[REXOBJS] ScaleToPrimChanged, no SceneObjectPart for id:" + id.ToString()); |
m_log.Error("[REXOBJS] TriggerOnChangeScaleToPrim, no SceneObjectPart for id:" + id.ToString()); |
| 263 |
return; |
return; |
| 264 |
} |
} |
| 265 |
|
|
| 266 |
if (sop.ParentGroup != null) |
if (sop.ParentGroup != null && sop.PhysActor is IRexPhysicsActor) |
|
{ |
|
|
if (sop.PhysActor != null) |
|
| 267 |
{ |
{ |
| 268 |
/* tucofixme, uncomment later |
((IRexPhysicsActor)sop.PhysActor).SetBoundsScaling(p.RexScaleToPrim); |
|
sop.PhysActor.SetBoundsScaling(p.RexScaleToPrim); |
|
| 269 |
sop.ParentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(sop.PhysActor); |
sop.ParentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(sop.PhysActor); |
|
*/ |
|
| 270 |
} |
} |
| 271 |
} |
} |
| 272 |
|
|
| 273 |
|
public void TriggerOnChangeRexObjectProperties(UUID id) |
| 274 |
|
{ |
| 275 |
|
RexObjectProperties props = GetObject(id); |
| 276 |
|
|
| 277 |
|
m_db.StoreObject(props); |
| 278 |
|
SendPropertiesToAllUsers(id,props); |
| 279 |
} |
} |
| 280 |
|
|
| 281 |
|
public void TriggerOnChangeRexObjectMetaData(UUID id) |
| 282 |
|
{ |
| 283 |
|
RexObjectProperties props = GetObject(id); |
| 284 |
|
|
| 285 |
|
m_db.StoreObject(props); |
| 286 |
|
// tucofixme, send metadata to all users |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
|
| 290 |
|
|
| 291 |
public void RexUpdateCollisionMesh(UUID id) |
public void RexUpdateCollisionMesh(UUID id) |
| 292 |
{ |
{ |
| 293 |
// tucofixme |
// tucofixme, add |
| 294 |
//if (!GlobalSettings.Instance.m_3d_collision_models) |
//if (!GlobalSettings.Instance.m_3d_collision_models) |
| 295 |
// return; |
// return; |
| 296 |
|
|
| 297 |
RexObjectProperties p = m_db.LoadObject(id); |
RexObjectProperties p = GetObject(id); |
|
if (p == null) |
|
|
{ |
|
|
m_log.Error("[REXOBJS] RexUpdateCollisionMesh, no RexObjectProperties for id:" + id.ToString()); |
|
|
return; |
|
|
} |
|
|
|
|
| 298 |
SceneObjectPart sop = m_scenes[0].GetSceneObjectPart(id); |
SceneObjectPart sop = m_scenes[0].GetSceneObjectPart(id); |
| 299 |
if (sop == null) |
if (sop == null) |
| 300 |
{ |
{ |
| 302 |
return; |
return; |
| 303 |
} |
} |
| 304 |
|
|
| 305 |
if (p.RexCollisionMeshUUID != UUID.Zero && sop.PhysActor != null) |
if (p.RexCollisionMeshUUID != UUID.Zero && sop.PhysActor is IRexPhysicsActor) |
| 306 |
{ |
{ |
| 307 |
/* tucofixme, uncomment later |
AssetBase tempmodel = sop.ParentGroup.Scene.CommsManager.AssetCache.GetAsset(p.RexCollisionMeshUUID, false); |
|
AssetBase tempmodel = sop.ParentGroup.Scene.AssetCache.GetAsset(p.RexCollisionMeshUUID,false); |
|
| 308 |
if (tempmodel != null) |
if (tempmodel != null) |
| 309 |
sop.PhysActor.SetCollisionMesh(tempmodel.Data, tempmodel.Name, p.RexScaleToPrim); |
((IRexPhysicsActor)sop.PhysActor).SetCollisionMesh(tempmodel.Data, tempmodel.Name, p.RexScaleToPrim); |
| 310 |
*/ |
} |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
public byte GetAssetType(UUID assetid) |
| 314 |
|
{ |
| 315 |
|
AssetBase tempmodel = m_scenes[0].CommsManager.AssetCache.GetAsset(assetid, true); |
| 316 |
|
if (tempmodel == null) |
| 317 |
|
m_scenes[0].CommsManager.AssetCache.GetAsset(assetid, false); |
| 318 |
|
|
| 319 |
|
if (tempmodel != null) |
| 320 |
|
return(byte)(tempmodel.Type); |
| 321 |
|
else |
| 322 |
|
return 0; |
| 323 |
|
} |
| 324 |
|
#endregion |
| 325 |
|
|
| 326 |
|
|
| 327 |
|
#region RexObjectProperties Cache |
| 328 |
|
|
| 329 |
|
private void LoadRexObjectPropertiesToCache() |
| 330 |
|
{ |
| 331 |
|
if (!m_db.Inizialized) |
| 332 |
|
{ |
| 333 |
|
m_log.ErrorFormat("LoadRexObjectPropertiesToCache failed, db not initialized"); |
| 334 |
|
return; |
| 335 |
|
} |
| 336 |
|
|
| 337 |
|
foreach (Scene s in m_scenes) |
| 338 |
|
{ |
| 339 |
|
foreach (EntityBase e in s.Entities) |
| 340 |
|
{ |
| 341 |
|
RexObjectProperties p = LoadObject(e.UUID); |
| 342 |
|
p.ParentObjectID = e.UUID; |
| 343 |
|
p.SetRexEventManager(this); |
| 344 |
|
RexObjectPropertiesCache.Add(e.UUID,p); |
| 345 |
|
|
| 346 |
|
// Since loaded objects have their properties already set, any initialization that needs to be done should be here. |
| 347 |
|
if(p.RexCollisionMeshUUID != UUID.Zero) |
| 348 |
|
TriggerOnChangeCollisionMesh(e.UUID); |
| 349 |
|
|
| 350 |
|
if (p.RexClassName.Length > 0) |
| 351 |
|
{ |
| 352 |
|
SceneObjectPart sop = m_scenes[0].GetSceneObjectPart(p.ParentObjectID); |
| 353 |
|
if (sop != null) |
| 354 |
|
sop.SetScriptEvents(p.ParentObjectID, (int)scriptEvents.touch_start); |
| 355 |
|
} |
| 356 |
|
} |
| 357 |
|
} |
| 358 |
|
} |
| 359 |
|
|
| 360 |
|
private RexObjectProperties LoadObject(UUID id) |
| 361 |
|
{ |
| 362 |
|
RexObjectProperties robject = m_db.LoadObject(id); |
| 363 |
|
if (robject == null) |
| 364 |
|
{ |
| 365 |
|
robject = new RexObjectProperties(); |
| 366 |
|
robject.ParentObjectID = id; |
| 367 |
|
} |
| 368 |
|
return robject; |
| 369 |
|
} |
| 370 |
|
|
| 371 |
|
public RexObjectProperties GetObject(UUID id) |
| 372 |
|
{ |
| 373 |
|
RexObjectProperties props = RexObjectPropertiesCache[id]; |
| 374 |
|
if (props == null) |
| 375 |
|
{ |
| 376 |
|
props = new RexObjectProperties(id, this); |
| 377 |
|
RexObjectPropertiesCache.Add(id, props); |
| 378 |
|
} |
| 379 |
|
return props; |
| 380 |
|
} |
| 381 |
|
|
| 382 |
|
public List<RexObjectProperties> GetObjects() |
| 383 |
|
{ |
| 384 |
|
return RexObjectPropertiesCache.GetAllRexObjectProperties(); |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
public bool DeleteObject(UUID id) |
| 388 |
|
{ |
| 389 |
|
if (RexObjectPropertiesCache.ContainsKey(id)) |
| 390 |
|
{ |
| 391 |
|
RexObjectPropertiesCache.Remove(id); |
| 392 |
|
m_db.RemoveObject(id); |
| 393 |
|
return true; |
| 394 |
} |
} |
| 395 |
|
return false; |
| 396 |
} |
} |
| 397 |
|
|
| 398 |
|
|
| 399 |
|
#endregion |
| 400 |
|
|
| 401 |
|
|
| 402 |
|
public void HandleLoadRexLegacyData(string module, string[] args) |
| 403 |
|
{ |
| 404 |
|
NHibernateRexLegacyData legacydata = new NHibernateRexLegacyData(); |
| 405 |
|
|
| 406 |
|
legacydata.Initialise(args[1]); |
| 407 |
|
if(!legacydata.Inizialized) |
| 408 |
|
{ |
| 409 |
|
m_log.Info("[MODREXOBJECTS]: Legacy database failed to initialize."); |
| 410 |
|
return; |
| 411 |
|
} |
| 412 |
|
|
| 413 |
|
List<RexLegacyPrimData> rexprimdata = legacydata.LoadAllRexPrimData(); |
| 414 |
|
m_log.Info("[MODREXOBJECTS]: Legacy rexprimdata objects loaded:" + rexprimdata.Count.ToString()); |
| 415 |
|
|
| 416 |
|
List<RexLegacyPrimMaterialData> rexprimmaterialdata = legacydata.LoadAllRexPrimMaterialData(); |
| 417 |
|
m_log.Info("[MODREXOBJECTS]: Legacy rexprimmaterialdata objects loaded:" + rexprimmaterialdata.Count.ToString()); |
| 418 |
|
|
| 419 |
|
foreach (RexLegacyPrimData prim in rexprimdata) |
| 420 |
|
{ |
| 421 |
|
RexObjectProperties p = GetObject(prim.UUID); |
| 422 |
|
p.SetRexPrimDataFromLegacyData(prim); |
| 423 |
|
} |
| 424 |
|
|
| 425 |
|
foreach (RexLegacyPrimMaterialData primmat in rexprimmaterialdata) |
| 426 |
|
{ |
| 427 |
|
RexObjectProperties p = GetObject(primmat.UUID); |
| 428 |
|
p.RexMaterials.AddMaterial((uint)primmat.MaterialIndex,primmat.MaterialUUID); |
| 429 |
|
} |
| 430 |
|
} |
| 431 |
|
|
| 432 |
} |
} |
| 433 |
} |
} |