Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Poirier <theeth@yahoo.com>2008-09-22 00:39:19 +0400
committerMartin Poirier <theeth@yahoo.com>2008-09-22 00:39:19 +0400
commitfeccb096d8fbfa76aa42d605434daac2aff5086a (patch)
treed4d665df55fe81f60c153b91e96383d52c82f5cc /source/blender/src/drawtext.c
parenta1b8a918cbf7eabc1719bd0146f67a342615de57 (diff)
[#17662] Blender runs the older version a python script when reloading it from disk
Missing free compiled.
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r--source/blender/src/drawtext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c
index 3f21d32c2d4..691da379b95 100644
--- a/source/blender/src/drawtext.c
+++ b/source/blender/src/drawtext.c
@@ -2667,6 +2667,8 @@ static short do_modification_check(SpaceText *st) {
} else {
switch (pupmenu("File Modified Outside Blender %t|Reload from disk %x0|Make text internal (separate copy) %x1|Ignore %x2")) {
case 0:
+ if (text->compiled) BPY_free_compiled_text(text);
+ text->compiled = NULL;
reopen_text(text);
if (st->showsyntax) txt_format_text(st);
return 1;