[Bf-python] Making IK flag writable in the Bone class
Jonas Petersen
blenderjox at mindfloaters.de
Fri Oct 22 20:25:28 CEST 2004
Stephen Swaney schrieb:
>Jonas Petersen wrote:
>
>
>
>
>
>>I modified python/api2_2x/Bone.c so the flag can be modified via python.
>>
>>For now I did it by adding an optional bool parameter to the hasIK()
>>function that sets/unsets the flag.
>>
>>
>
>>From an API point of view, I really, REALLY dislike the idea
>of overloading a query function to set and unset a flag.
>
>
>
Me too :)
But it's done like this in other places as well. So I thought it would
be ok. Check out NMesh for example. It has 3 "has*" functions, which all
have an optional parameter to set the flag.
More information about the Bf-python
mailing list