[Bf-python] Making IK flag writable in the Bone class

Toni Alatalo antont at kyperjokki.fi
Tue Oct 26 02:37:07 CEST 2004


On Mon, 25 Oct 2004, Jonas Petersen wrote:

argh should have read all of the thread before replying, *doh*

> If a bone has no parent a warning is sent like this:
>   PyErr_Warn( PyExc_Warning, "bone has no parent!" );

how is this received on the Python side, as a Exception: Warning
or?

> I have added a deprecation warning to hasIK():

nice

> Here is a basic test python script:

as you added the exception handling as well,
the test case could test that part too, i.e.
try the operation for some invalid object
(i.e. on a bone without a parent, right?)
and catch the exception as expected
-- and if the API does not raise the exception
then raise some serious error in the test.

~Toni




More information about the Bf-python mailing list