Merge pull request #6861 from boyu0/bug4944_physics_crash

closed #4944: fixed bug: physics engine crashes occasionally when remove...
[ci skip]
fixed ui header file include problem
Merge pull request #6868 from andyque/fixInclude

fixed ui header file include problem