Fixed #4566: Constructor added for LayerGradient and sync -x