Make Top Objeccts Focus work
Thanks for the grid to test on, Bitten!
This commit is contained in:
@@ -541,7 +541,7 @@ void LLFloaterTopObjects::onCamToObject()
|
|||||||
LLVector3d pos_global = getSelectedPosition();
|
LLVector3d pos_global = getSelectedPosition();
|
||||||
if (pos_global.isExactlyZero()) return;
|
if (pos_global.isExactlyZero()) return;
|
||||||
const LLUUID& id = getChild<LLScrollListCtrl>("objects_list")->getFirstSelected()->getUUID();
|
const LLUUID& id = getChild<LLScrollListCtrl>("objects_list")->getFirstSelected()->getUUID();
|
||||||
gAgentCamera.setFocusGlobal(pos_global, id);
|
gAgentCamera.setCameraPosAndFocusGlobal(pos_global + LLVector3d(3.5,1.35,0.75), pos_global, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LLFloaterTopObjects::onKick()
|
void LLFloaterTopObjects::onKick()
|
||||||
|
|||||||
Reference in New Issue
Block a user