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:
authorPedro Reis <veryprofessionaldodo>2019-09-20 13:46:13 +0300
committerJacques Lucke <mail@jlucke.com>2019-09-20 13:46:26 +0300
commitfb6ef2ec8d0367e5d3433787561ee56773f9bee3 (patch)
tree66ec275ac047493c4ad491e588d5e36a4e2a536e /source/blender/editors/space_text
parentf5dc979a7eb0833b7abcf9db9ab9a01905786091 (diff)
Fix T69486: Reloading file in text editor marks file as modified
Differential Revision: https://developer.blender.org/D5847
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r--source/blender/editors/space_text/text_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c
index caefb5070fb..e16f90240f7 100644
--- a/source/blender/editors/space_text/text_ops.c
+++ b/source/blender/editors/space_text/text_ops.c
@@ -443,6 +443,8 @@ static int text_reload_exec(bContext *C, wmOperator *op)
text_drawcache_tag_update(CTX_wm_space_text(C), 1);
WM_event_add_notifier(C, NC_TEXT | NA_EDITED, text);
+ text->flags &= ~TXT_ISDIRTY;
+
/* return to scroll position */
st->top = orig_top;
txt_screen_clamp(st, ar);