[Bf-blender-cvs] [0a30433] master: Freestyle: Fix for AndBP1D and OrBP1D not working due to typos.

Tamito Kajiyama noreply at git.blender.org
Wed Apr 8 17:30:50 CEST 2015


Commit: 0a304337e184c97eabf7e451714bde14a32c0a12
Author: Tamito Kajiyama
Date:   Thu Apr 9 00:24:26 2015 +0900
Branches: master
https://developer.blender.org/rB0a304337e184c97eabf7e451714bde14a32c0a12

Freestyle: Fix for AndBP1D and OrBP1D not working due to typos.

Problem report by Folkert de Vries (flokkievids) through personal
communications.  Thanks!

===================================================================

M	release/scripts/freestyle/modules/freestyle/predicates.py

===================================================================

diff --git a/release/scripts/freestyle/modules/freestyle/predicates.py b/release/scripts/freestyle/modules/freestyle/predicates.py
index 54656e4..2439cb0 100644
--- a/release/scripts/freestyle/modules/freestyle/predicates.py
+++ b/release/scripts/freestyle/modules/freestyle/predicates.py
@@ -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):




More information about the Bf-blender-cvs mailing list