Skip to content

Commit e881f19

Browse files
authored
Merge pull request #753 from StephenHodgson/HTK-InputManager
InputManager Update
2 parents e884de1 + eacadbc commit e881f19

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Assets/HoloToolkit/Input/Scripts/InputManager.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,8 @@ public void HandleEvent<T>(BaseEventData eventData, ExecuteEvents.EventFunction<
241241

242242
// If there is a focused object in the hierarchy of the modal handler, start the event
243243
// bubble there
244-
if (focusedObject != null && focusedObject.transform.IsChildOf(modalInput.transform))
244+
if (focusedObject != null && modalInput != null && focusedObject.transform.IsChildOf(modalInput.transform))
245245
{
246-
247246
if (ExecuteEvents.ExecuteHierarchy(focusedObject, eventData, eventHandler))
248247
{
249248
return;

0 commit comments

Comments
 (0)