File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -393,14 +393,22 @@ void LLHUDEffectLookAt::setTargetPosGlobal(const LLVector3d &target_pos_global)
393
393
// -----------------------------------------------------------------------------
394
394
bool LLHUDEffectLookAt::setLookAt (ELookAtType target_type, LLViewerObject *object, LLVector3 position)
395
395
{
396
- static LLCachedControl<bool > enable_lookat_hints (gSavedSettings , " EnableLookAtHints" , true );
397
- if (!enable_lookat_hints)
396
+ if (!mSourceObject )
398
397
{
399
398
return false ;
400
399
}
401
400
402
- if (!mSourceObject )
401
+ static LLCachedControl<bool > enable_lookat_hints (gSavedSettings , " EnableLookAtHints" , true );
402
+ if (!enable_lookat_hints)
403
403
{
404
+ if (mTargetType != LOOKAT_TARGET_IDLE)
405
+ {
406
+ mTargetObject = gAgentAvatarp ;
407
+ mTargetType = LOOKAT_TARGET_IDLE;
408
+ mTargetOffsetGlobal .set (2 .f , 0 .f , 0 .f );
409
+ setDuration (3 .f );
410
+ setNeedsSendToSim (true );
411
+ }
404
412
return false ;
405
413
}
406
414
Original file line number Diff line number Diff line change @@ -222,14 +222,20 @@ void LLHUDEffectPointAt::setTargetPosGlobal(const LLVector3d &target_pos_global)
222
222
// -----------------------------------------------------------------------------
223
223
bool LLHUDEffectPointAt::setPointAt (EPointAtType target_type, LLViewerObject *object, LLVector3 position)
224
224
{
225
- static LLCachedControl<bool > enable_selection_hints (gSavedSettings , " EnableSelectionHints" , true );
226
- if (!enable_selection_hints)
225
+ if (!mSourceObject )
227
226
{
228
227
return false ;
229
228
}
230
229
231
- if (!mSourceObject )
230
+ static LLCachedControl<bool > enable_selection_hints (gSavedSettings , " EnableSelectionHints" , true );
231
+ if (!enable_selection_hints)
232
232
{
233
+ if (mTargetType != POINTAT_TARGET_NONE)
234
+ {
235
+ clearPointAtTarget ();
236
+ setDuration (1 .f );
237
+ setNeedsSendToSim (true );
238
+ }
233
239
return false ;
234
240
}
235
241
You can’t perform that action at this time.
0 commit comments