43f97393bb
When use Invert option, the weight must be inverted not omitted. This change invert the value if the point had assigned weight to get the right result.