feat(editor): focus hierarchy object on double click
This commit is contained in:
parent
b76bc94902
commit
137c3d67dd
@ -2913,6 +2913,9 @@ private:
|
||||
if ((leftClicked || rightClicked) && !ImGui::IsItemToggledOpen()) {
|
||||
if (leftClicked) {
|
||||
MetaCoreApplyHierarchySelection(editorContext, objectId, true);
|
||||
if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
|
||||
editorContext.GetCameraController().FocusGameObject(gameObject);
|
||||
}
|
||||
} else if (!editorContext.IsObjectSelected(objectId)) {
|
||||
editorContext.SelectOnly(objectId);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user