Fix for Freestyle built-in style module sketchy_multiple_parameterization.py not...
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Thu, 16 May 2013 23:49:05 +0000 (23:49 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Thu, 16 May 2013 23:49:05 +0000 (23:49 +0000)
commit30d3a57eb757633aee2ef2a316ec3ddb2f668c70
tree68ba31fa09d7d6324f59fa804b92269e05e4e50f
parent616bc9d68ff6e22350f4e6f55e4cb03fe6636d3f
Fix for Freestyle built-in style module sketchy_multiple_parameterization.py not working correctly.
Suitable for inclusion in 2.67a.

Logical AND, OR and XOR operations on freestyle.Nature instances gave an error in some cases.
The updated C implementation of these bitwise operations is intended to reproduce the following Python implementation:

class Nature(int):
    def __and__(self, other):
        return Nature(int(self) & int(other))
    def __or__(self, other):
        return Nature(int(self) | int(other))
    def __xor__(self, other):
        return Nature(int(self) ^ int(other))

The problem report was by plasmasolutions on IRC, thanks a lot!
source/blender/freestyle/intern/python/BPy_Nature.cpp