Refactor #4290: Resolve bug of PhysicsSprite - add dirty check