diff options
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 21 | 
1 files changed, 16 insertions, 5 deletions
| diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index a886303563..e959f24f1f 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -1414,7 +1414,8 @@ bool check_asset_previewable(const LLAssetType::EType asset_type)  			(asset_type == LLAssetType::AT_TEXTURE)   ||  			(asset_type == LLAssetType::AT_ANIMATION) ||  			(asset_type == LLAssetType::AT_SCRIPT)    || -			(asset_type == LLAssetType::AT_SOUND); +			(asset_type == LLAssetType::AT_SOUND) || +            (asset_type == LLAssetType::AT_MATERIAL);  }  void open_inventory_offer(const uuid_vec_t& objects, const std::string& from_name) @@ -1519,6 +1520,9 @@ void open_inventory_offer(const uuid_vec_t& objects, const std::string& from_nam  					case LLAssetType::AT_SOUND:  						LLFloaterReg::showInstance("preview_sound", LLSD(obj_id), take_focus);  						break; +                    case LLAssetType::AT_MATERIAL: +                        LLFloaterReg::showInstance("material editor", LLSD(obj_id), take_focus); +                        break;  					default:  						LL_DEBUGS("Messaging") << "No preview method for previewable asset type : " << LLAssetType::lookupHumanReadable(asset_type)  << LL_ENDL;  						break; @@ -3334,6 +3338,13 @@ void send_agent_update(BOOL force_send, BOOL send_reliable)  	// trigger a control event.  	U32 control_flags = gAgent.getControlFlags(); +    // Rotation into both directions should cancel out +    U32 mask = AGENT_CONTROL_YAW_POS | AGENT_CONTROL_YAW_NEG; +    if ((control_flags & mask) == mask) +    { +        control_flags &= ~mask; +    } +  	MASK	key_mask = gKeyboard->currentMask(TRUE);  	if (key_mask & MASK_ALT || key_mask & MASK_CONTROL) @@ -5805,15 +5816,15 @@ void process_script_question(LLMessageSystem *msg, void **user_data)  				if (("ScriptTakeMoney" == script_perm.question) && has_not_only_debit)  					continue; -                if (script_perm.question == "JoinAnExperience") -                { // Some experience only permissions do not have an explicit permission bit.  Add them here. -                    script_question += "    " + LLTrans::getString("ForceSitAvatar") + "\n"; +                if (LLTrans::getString(script_perm.question).empty()) +                { +                    continue;                  }  				script_question += "    " + LLTrans::getString(script_perm.question) + "\n";  			}  		} -	 +  		args["QUESTIONS"] = script_question;  		if (known_questions != questions) | 
