[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16078] branches/soc-2008-quorn/source/ blender/blenkernel/intern/text.c: Small bug fix: Scripts were not being recompiled after an error, if the (auto-selected) erroneous text was simply deleted and the script re-run.

Ian Thompson quornian at googlemail.com
Wed Aug 13 19:29:52 CEST 2008


Revision: 16078
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16078
Author:   quorn
Date:     2008-08-13 19:29:51 +0200 (Wed, 13 Aug 2008)

Log Message:
-----------
Small bug fix: Scripts were not being recompiled after an error, if the (auto-selected) erroneous text was simply deleted and the script re-run.

Modified Paths:
--------------
    branches/soc-2008-quorn/source/blender/blenkernel/intern/text.c

Modified: branches/soc-2008-quorn/source/blender/blenkernel/intern/text.c
===================================================================
--- branches/soc-2008-quorn/source/blender/blenkernel/intern/text.c	2008-08-13 13:36:09 UTC (rev 16077)
+++ branches/soc-2008-quorn/source/blender/blenkernel/intern/text.c	2008-08-13 17:29:51 UTC (rev 16078)
@@ -2221,6 +2221,7 @@
 
 	if (txt_has_sel(text)) { /* deleting a selection */
 		txt_delete_sel(text);
+		txt_make_dirty(text);
 		return;
 	}
 	else if (text->curc== text->curl->len) { /* Appending two lines */
@@ -2281,6 +2282,7 @@
 	
 	if (txt_has_sel(text)) { /* deleting a selection */
 		txt_delete_sel(text);
+		txt_make_dirty(text);
 		return;
 	}
 	else if (text->curc==0) { /* Appending two lines */





More information about the Bf-blender-cvs mailing list