Submitted by: Thomas Knight (epat)

Parts committed:
1) Fixed a few misspellings in some error strings.
2) Fixed a (theoretical) bug with pyconstraints where a text object could be deleted from python but would remain linked
to the constraint it was assigned to - causing slight UI usage discontinuities!

Not committed yet:
3) Particle system bugfix in this patch has not been committed. Could jahka or brecht check this.
This commit is contained in:
2008-02-24 06:38:42 +00:00
parent c8569c934a
commit cd934aa1a8
5 changed files with 46 additions and 36 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
/*
* $Id: Text.c 11123 2007-06-29 08:59:26Z campbellbarton $
* $Id$
*
* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
*
@@ -289,6 +289,7 @@ static PyObject *M_Text_unlink( PyObject * self, PyObject * args )
"this text was already unlinked!" );
BPY_clear_bad_scriptlinks( text );
BPY_free_pyconstraint_links( text );
free_text_controllers( text );
unlink_text( text );
+3 -2
View File
@@ -621,7 +621,7 @@ PyObject *LibBlockSeq_unlink(BPy_LibBlockSeq *self, PyObject * value)
if (!data)
return EXPP_ReturnPyObjError( PyExc_RuntimeError,
"This Group has been removed alredy" );
"This Group has been removed already" );
/* Run the removal code */
free_group(data);
@@ -642,10 +642,11 @@ PyObject *LibBlockSeq_unlink(BPy_LibBlockSeq *self, PyObject * value)
if (!data)
return EXPP_ReturnPyObjError( PyExc_RuntimeError,
"This Group has been removed alredy" );
"This Group has been removed already" );
/* Run the removal code */
BPY_clear_bad_scriptlinks( data );
BPY_free_pyconstraint_links( data );
free_text_controllers( data );
unlink_text( data );
free_libblock( &G.main->text, data );