forked from bartvdbraak/blender
Undefined reference to subtarget in last PyConstraint commit:
https://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11653 I think this commit make it do what it was intended to, but Joshua should recheck this ASAP.
This commit is contained in:
parent
982d45162b
commit
b5b39e177a
@ -1408,7 +1408,6 @@ int BPY_pyconstraint_targets(bPythonConstraint *con, float targetmat[][4])
|
|||||||
PyObject *gval, *gval2;
|
PyObject *gval, *gval2;
|
||||||
PyObject *pyargs, *retval;
|
PyObject *pyargs, *retval;
|
||||||
MatrixObject *retmat;
|
MatrixObject *retmat;
|
||||||
bPoseChannel *pchan;
|
|
||||||
int row, col;
|
int row, col;
|
||||||
|
|
||||||
if ( !con->text ) return 0;
|
if ( !con->text ) return 0;
|
||||||
@ -1423,8 +1422,7 @@ int BPY_pyconstraint_targets(bPythonConstraint *con, float targetmat[][4])
|
|||||||
subtar = PyPoseBone_FromPosechannel( pchan );
|
subtar = PyPoseBone_FromPosechannel( pchan );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
subtar = PyString_FromString(subtarget);
|
subtar = PyString_FromString(con->subtarget);
|
||||||
subtar = PyPoseBone_FromPosechannel( pchan );
|
|
||||||
|
|
||||||
tarmat = newMatrixObject( (float*)targetmat, 4, 4, Py_NEW );
|
tarmat = newMatrixObject( (float*)targetmat, 4, 4, Py_NEW );
|
||||||
idprop = BPy_Wrap_IDProperty( NULL, con->prop, NULL);
|
idprop = BPy_Wrap_IDProperty( NULL, con->prop, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user