diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-11-27 21:32:26 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-11-27 21:32:26 +0300 |
commit | e3b7dfe6e2cf4d1d7faf32d287b02c01939dc3e6 (patch) | |
tree | 3a6922ea4b0ca5f2c3414eb28d428f0640b23091 /source/blender/src/drawtext.c | |
parent | fa5649796d2deb94eefff92d2e1132de3dc5e339 (diff) |
BPython:
- fixed bug #1882: http://projects.blender.org/tracker/?func=detail&atid=125&aid=1882&group_id=9
Crash / hang when changing meshes that had edge data. The mesh->totedge value was not being set to 0. Reported by jms, thanks.
- fixed bug #1780: https://projects.blender.org/tracker/index.php?func=detail&aid=1780&group_id=9&atid=125.
Deleting a Text that was being used as script link crashed Blender. Added a check to unlink the Text from eventual script links when it gets removed. Reported by kaito, thanks.
- doc updates (one related to bug #1807: http://projects.blender.org/tracker/?func=detail&atid=125&aid=1807&group_id=9 , actually a little misleading word in the NMesh doc: you can get the subsurfed mesh with NMesh.GetRawFromObject, but it's the display subdivision level that counts).
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r-- | source/blender/src/drawtext.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c index ef5656c7f1f..e6e9ea598e1 100644 --- a/source/blender/src/drawtext.c +++ b/source/blender/src/drawtext.c @@ -710,6 +710,13 @@ void unlink_text(Text *text) ScrArea *area; SpaceLink *sl; + /* check if this text was used as script link: + * this check function unsets the pointers and returns how many + * script links used this Text */ + if (BPY_check_all_scriptlinks (text)) { + allqueue(REDRAWBUTSSCRIPT, 0); + } + for (scr= G.main->screen.first; scr; scr= scr->id.next) { for (area= scr->areabase.first; area; area= area->next) { for (sl= area->spacedata.first; sl; sl= sl->next) { |