[varLibs.models] Another fix
Though, the previous work was also working; the bug couldn't be hit.
This commit is contained in:
parent
1801248938
commit
09ae567070
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user