[Bf-blender-cvs] [fb6ef2ec8d0] master: Fix T69486: Reloading file in text editor marks file as modified
Pedro Reis
noreply at git.blender.org
Fri Sep 20 12:48:18 CEST 2019
Commit: fb6ef2ec8d0367e5d3433787561ee56773f9bee3
Author: Pedro Reis
Date: Fri Sep 20 12:46:13 2019 +0200
Branches: master
https://developer.blender.org/rBfb6ef2ec8d0367e5d3433787561ee56773f9bee3
Fix T69486: Reloading file in text editor marks file as modified
Differential Revision: https://developer.blender.org/D5847
===================================================================
M source/blender/editors/space_text/text_ops.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list