pyconstraints USE_TARGET wasnt being checked for true/false, was assumed True whenever it was assigned in the

script
This commit is contained in:
2007-10-15 14:41:29 +00:00
parent 4fa17b2eb4
commit 15ad8e7e66

View File

@@ -1461,7 +1461,7 @@ int BPY_pyconstraint_targets(bPythonConstraint *con, float targetmat[][4])
/* try to find USE_TARGET global constant */
gval = PyDict_GetItemString(globals, "USE_TARGET");
if (!gval) {
if (!gval || PyObject_IsTrue(gval) != 1) {
ReleaseGlobalDictionary( globals );
/* free temp objects */