Reintroduce lost patch from the model loader, which would cause the custom values to be missing from generated models.