f
This commit is contained in:
@@ -65,6 +65,11 @@
|
||||
#include "llviewercamera.h"
|
||||
#include "llviewerstats.h"
|
||||
|
||||
// <edit>
|
||||
#include "llparcel.h" // always rez
|
||||
#include "llviewerparcelmgr.h" // always rez
|
||||
// </edit>
|
||||
|
||||
const LLVector3 DEFAULT_OBJECT_SCALE(0.5f, 0.5f, 0.5f);
|
||||
|
||||
//static
|
||||
@@ -233,7 +238,18 @@ BOOL LLToolPlacer::addObject( LLPCode pcode, S32 x, S32 y, U8 use_physics )
|
||||
gMessageSystem->nextBlockFast(_PREHASH_AgentData);
|
||||
gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
|
||||
gMessageSystem->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID());
|
||||
gMessageSystem->addUUIDFast(_PREHASH_GroupID, gAgent.getGroupID());
|
||||
|
||||
// Alway rez objects as land group if available.
|
||||
if (gSavedSettings.getBOOL("AscentAlwaysRezInGroup"))
|
||||
{
|
||||
LLParcel *parcel = LLViewerParcelMgr::getInstance()->getAgentParcel();
|
||||
if(gAgent.isInGroup(parcel->getGroupID()))
|
||||
gMessageSystem->addUUIDFast(_PREHASH_GroupID, parcel->getGroupID());
|
||||
else if(gAgent.isInGroup(parcel->getOwnerID()))
|
||||
gMessageSystem->addUUIDFast(_PREHASH_GroupID, parcel->getOwnerID());
|
||||
else gMessageSystem->addUUIDFast(_PREHASH_GroupID, gAgent.getGroupID());
|
||||
} else gMessageSystem->addUUIDFast(_PREHASH_GroupID, gAgent.getGroupID());
|
||||
|
||||
gMessageSystem->nextBlockFast(_PREHASH_ObjectData);
|
||||
gMessageSystem->addU8Fast(_PREHASH_Material, material);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user