diff options
| -rw-r--r-- | indra/llmessage/message_prehash.cpp | 2 | ||||
| -rw-r--r-- | indra/llmessage/message_prehash.h | 2 | ||||
| -rw-r--r-- | indra/newview/llfloatertools.cpp | 21 | ||||
| -rw-r--r-- | indra/newview/llselectmgr.cpp | 44 | ||||
| -rw-r--r-- | indra/newview/llselectmgr.h | 2 | ||||
| -rw-r--r-- | indra/newview/llviewerobject.cpp | 32 | ||||
| -rw-r--r-- | indra/newview/llviewerobject.h | 1 | 
7 files changed, 0 insertions, 104 deletions
| diff --git a/indra/llmessage/message_prehash.cpp b/indra/llmessage/message_prehash.cpp index 54bd469621..d7658862da 100644 --- a/indra/llmessage/message_prehash.cpp +++ b/indra/llmessage/message_prehash.cpp @@ -943,7 +943,6 @@ char const* const _PREHASH_SysGPU = LLMessageStringTable::getInstance()->getStri  char const* const _PREHASH_AvatarInterestsReply = LLMessageStringTable::getInstance()->getString("AvatarInterestsReply");  char const* const _PREHASH_StartLure = LLMessageStringTable::getInstance()->getString("StartLure");  char const* const _PREHASH_SysRAM = LLMessageStringTable::getInstance()->getString("SysRAM"); -char const* const _PREHASH_ObjectPosition = LLMessageStringTable::getInstance()->getString("ObjectPosition");  char const* const _PREHASH_SitPosition = LLMessageStringTable::getInstance()->getString("SitPosition");  char const* const _PREHASH_StartTime = LLMessageStringTable::getInstance()->getString("StartTime");  char const* const _PREHASH_BornOn = LLMessageStringTable::getInstance()->getString("BornOn"); @@ -1047,7 +1046,6 @@ char const* const _PREHASH_SimIP = LLMessageStringTable::getInstance()->getStrin  char const* const _PREHASH_GodID = LLMessageStringTable::getInstance()->getString("GodID");  char const* const _PREHASH_TeleportMinPrice = LLMessageStringTable::getInstance()->getString("TeleportMinPrice");  char const* const _PREHASH_VoteItem = LLMessageStringTable::getInstance()->getString("VoteItem"); -char const* const _PREHASH_ObjectRotation = LLMessageStringTable::getInstance()->getString("ObjectRotation");  char const* const _PREHASH_SitRotation = LLMessageStringTable::getInstance()->getString("SitRotation");  char const* const _PREHASH_SnapSelection = LLMessageStringTable::getInstance()->getString("SnapSelection");  char const* const _PREHASH_SoundTrigger = LLMessageStringTable::getInstance()->getString("SoundTrigger"); diff --git a/indra/llmessage/message_prehash.h b/indra/llmessage/message_prehash.h index 8a60ba1629..da2b613f53 100644 --- a/indra/llmessage/message_prehash.h +++ b/indra/llmessage/message_prehash.h @@ -943,7 +943,6 @@ extern char const* const _PREHASH_SysGPU;  extern char const* const _PREHASH_AvatarInterestsReply;  extern char const* const _PREHASH_StartLure;  extern char const* const _PREHASH_SysRAM; -extern char const* const _PREHASH_ObjectPosition;  extern char const* const _PREHASH_SitPosition;  extern char const* const _PREHASH_StartTime;  extern char const* const _PREHASH_BornOn; @@ -1047,7 +1046,6 @@ extern char const* const _PREHASH_SimIP;  extern char const* const _PREHASH_GodID;  extern char const* const _PREHASH_TeleportMinPrice;  extern char const* const _PREHASH_VoteItem; -extern char const* const _PREHASH_ObjectRotation;  extern char const* const _PREHASH_SitRotation;  extern char const* const _PREHASH_SnapSelection;  extern char const* const _PREHASH_SoundTrigger; diff --git a/indra/newview/llfloatertools.cpp b/indra/newview/llfloatertools.cpp index 6978e6a430..2a722d8ed4 100644 --- a/indra/newview/llfloatertools.cpp +++ b/indra/newview/llfloatertools.cpp @@ -110,9 +110,6 @@ void click_show_more(void*);  void click_popup_info(void*);  void click_popup_done(void*);  void click_popup_minimize(void*); -void click_popup_rotate_left(void*); -void click_popup_rotate_reset(void*); -void click_popup_rotate_right(void*);  void commit_slider_dozer_force(LLUICtrl *);  void click_apply_to_selection(void*);  void commit_radio_group_focus(LLUICtrl* ctrl); @@ -954,24 +951,6 @@ void commit_slider_zoom(LLUICtrl *ctrl)  	gAgentCamera.setCameraZoomFraction(zoom_level);  } -void click_popup_rotate_left(void*) -{ -	LLSelectMgr::getInstance()->selectionRotateAroundZ( 45.f ); -	dialog_refresh_all(); -} - -void click_popup_rotate_reset(void*) -{ -	LLSelectMgr::getInstance()->selectionResetRotation(); -	dialog_refresh_all(); -} - -void click_popup_rotate_right(void*) -{ -	LLSelectMgr::getInstance()->selectionRotateAroundZ( -45.f ); -	dialog_refresh_all(); -} -  void commit_slider_dozer_force(LLUICtrl *ctrl)  {  	// the slider is logarithmic, so we exponentiate to get the actual force multiplier diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 1ee365ce97..ae61ead935 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -2286,50 +2286,6 @@ void LLSelectMgr::packObjectIDAsParam(LLSelectNode* node, void *)  }  //----------------------------------------------------------------------------- -// Rotation options -//----------------------------------------------------------------------------- -void LLSelectMgr::selectionResetRotation() -{ -	struct f : public LLSelectedObjectFunctor -	{ -		virtual bool apply(LLViewerObject* object) -		{ -			LLQuaternion identity(0.f, 0.f, 0.f, 1.f); -			object->setRotation(identity); -			if (object->mDrawable.notNull()) -			{ -				gPipeline.markMoved(object->mDrawable, TRUE); -			} -			object->sendRotationUpdate(); -			return true; -		} -	} func; -	getSelection()->applyToRootObjects(&func); -} - -void LLSelectMgr::selectionRotateAroundZ(F32 degrees) -{ -	LLQuaternion rot( degrees * DEG_TO_RAD, LLVector3(0,0,1) ); -	struct f : public LLSelectedObjectFunctor -	{ -		LLQuaternion mRot; -		f(const LLQuaternion& rot) : mRot(rot) {} -		virtual bool apply(LLViewerObject* object) -		{ -			object->setRotation( object->getRotationEdit() * mRot ); -			if (object->mDrawable.notNull()) -			{ -				gPipeline.markMoved(object->mDrawable, TRUE); -			} -			object->sendRotationUpdate(); -			return true; -		} -	} func(rot); -	getSelection()->applyToRootObjects(&func);	 -} - - -//-----------------------------------------------------------------------------  // selectionTexScaleAutofit()  //-----------------------------------------------------------------------------  void LLSelectMgr::selectionTexScaleAutofit(F32 repeats_per_meter) diff --git a/indra/newview/llselectmgr.h b/indra/newview/llselectmgr.h index c2816fe78a..9a066799fe 100644 --- a/indra/newview/llselectmgr.h +++ b/indra/newview/llselectmgr.h @@ -538,8 +538,6 @@ public:  	void selectionTexScaleAutofit(F32 repeats_per_meter);  	void adjustTexturesByScale(BOOL send_to_sim, BOOL stretch); -	void selectionResetRotation();				// sets rotation quat to identity -	void selectionRotateAroundZ(F32 degrees);  	bool selectionMove(const LLVector3& displ, F32 rx, F32 ry, F32 rz,  					   U32 update_type);  	void sendSelectionMove(); diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index c70ceac525..48351f4575 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -4026,38 +4026,6 @@ void LLViewerObject::sendMaterialUpdate() const  } -// formerly send_object_rotation -void LLViewerObject::sendRotationUpdate() const -{ -	LLViewerRegion* regionp = getRegion(); -	if(!regionp) return; -	gMessageSystem->newMessageFast(_PREHASH_ObjectRotation); -	gMessageSystem->nextBlockFast(_PREHASH_AgentData); -	gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID() ); -	gMessageSystem->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID()); -	gMessageSystem->nextBlockFast(_PREHASH_ObjectData); -	gMessageSystem->addU32Fast(_PREHASH_ObjectLocalID, mLocalID); -	gMessageSystem->addQuatFast(_PREHASH_Rotation, getRotationEdit()); -	//llinfos << "Sent rotation " << getRotationEdit() << llendl; -	gMessageSystem->sendReliable( regionp->getHost() ); -} - -/* Obsolete, we use MultipleObjectUpdate instead -//// formerly send_object_position_global -//void LLViewerObject::sendPositionUpdate() const -//{ -//	gMessageSystem->newMessageFast(_PREHASH_ObjectPosition); -//	gMessageSystem->nextBlockFast(_PREHASH_AgentData); -//	gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID() ); -//	gMessageSystem->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID()); -//	gMessageSystem->nextBlockFast(_PREHASH_ObjectData); -//	gMessageSystem->addU32Fast(_PREHASH_ObjectLocalID,	mLocalID ); -//	gMessageSystem->addVector3Fast(_PREHASH_Position, getPositionRegion()); -//	LLViewerRegion* regionp = getRegion(); -//	gMessageSystem->sendReliable(regionp->getHost()); -//} -*/ -  //formerly send_object_shape(LLViewerObject *object)  void LLViewerObject::sendShapeUpdate()  { diff --git a/indra/newview/llviewerobject.h b/indra/newview/llviewerobject.h index 1af1eff458..ee1bac28ca 100644 --- a/indra/newview/llviewerobject.h +++ b/indra/newview/llviewerobject.h @@ -308,7 +308,6 @@ public:  	inline void setRotation(const F32 x, const F32 y, const F32 z, BOOL damped = FALSE);  	inline void setRotation(const LLQuaternion& quat, BOOL damped = FALSE); -	void sendRotationUpdate() const;  	/*virtual*/	void	setNumTEs(const U8 num_tes);  	/*virtual*/	void	setTE(const U8 te, const LLTextureEntry &texture_entry); | 
