Bug fix as reported by Fish-Face/Chris Le Sueur on IRC

After deleting an object, the call free_and_unlink_base() takes care of
NULLifying object pointers. But, with exception of constraints. Silly!!!

So, in the end of a function additionally the test_scene_constraints()
has to be called to prevent crashes. This was missing in join_mesh and
convert_object.
This commit is contained in:
2005-03-12 12:10:07 +00:00
parent e1e6b10488
commit 1f284bb583
2 changed files with 8 additions and 1 deletions

View File

@@ -432,6 +432,8 @@ void join_mesh(void)
enter_editmode();
exit_editmode(1); // freedata, but no undo
test_scene_constraints(); // always call after delete object (stupid!)
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWBUTSSHADING, 0);
makeDispList(ob);