forked from bartvdbraak/blender
[#17662] Blender runs the older version a python script when reloading it from disk
Missing free compiled.
This commit is contained in:
parent
a1b8a918cb
commit
feccb096d8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user