[varLibs.models] Another fix

Though, the previous work was also working; the bug couldn't be hit.
This commit is contained in:
Behdad Esfahbod 2018-06-16 14:17:44 -04:00
parent 1801248938
commit 09ae567070

View File

@ -274,6 +274,9 @@ class VariationModel(object):
elif locV < val:
newUpper = val
percentage = (val - locV) / (upper - locV)
else: # val == locV
# Can't split box in this direction.
continue
if percentage > bestPercentage:
bestPercentage = percentage
bestAxis = axis