Skip to content

Commit

Permalink
#979 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelbaran committed Feb 26, 2021
1 parent b76209c commit 089a1a1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Revit_Adapter/RevitAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,8 @@ private void RaiseEvents()
if (m_ReturnEvents == null)
return;

Engine.Reflection.Query.CurrentEvents().AddRange(m_ReturnEvents);
Engine.Reflection.Query.AllEvents().AddRange(m_ReturnEvents);

m_ReturnEvents = new List<Event>();
m_ReturnEvents.ForEach(x => Engine.Reflection.Compute.RecordEvent(x));
m_ReturnEvents.Clear();
}

/***************************************************/
Expand Down

0 comments on commit 089a1a1

Please sign in to comment.