forked from bartvdbraak/blender
Freestyle: Fix for AndBP1D and OrBP1D not working due to typos.
Problem report by Folkert de Vries (flokkievids) through personal communications. Thanks!
This commit is contained in:
parent
c523e82e31
commit
0a304337e1
@ -564,7 +564,7 @@ class AndBP1D(BinaryPredicate1D):
|
||||
def __init__(self, *predicates):
|
||||
BinaryPredicate1D.__init__(self)
|
||||
self._predicates = predicates
|
||||
if len(self.predicates) < 2:
|
||||
if len(predicates) < 2:
|
||||
raise ValueError("Expected two or more BinaryPredicate1D, got ", len(predictates))
|
||||
|
||||
def __call__(self, i1, i2):
|
||||
@ -575,7 +575,7 @@ class OrBP1D(BinaryPredicate1D):
|
||||
def __init__(self, *predicates):
|
||||
BinaryPredicate1D.__init__(self)
|
||||
self._predicates = predicates
|
||||
if len(self.predicates) < 2:
|
||||
if len(predicates) < 2:
|
||||
raise ValueError("Expected two or more BinaryPredicate1D, got ", len(predictates))
|
||||
|
||||
def __call__(self, i1, i2):
|
||||
|
Loading…
Reference in New Issue
Block a user