Page Menu
Home
Search
Configure Global Search
Log In
Files
F20015
text_comment_line.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Justin Dailey (dail)
Nov 13 2013, 4:22 PM
Size
1 KB
Subscribers
None
text_comment_line.diff
View Options
Index: source/blender/editors/space_text/text_ops.c
===================================================================
--- source/blender/editors/space_text/text_ops.c (revision 45048)
+++ source/blender/editors/space_text/text_ops.c (working copy)
@@ -1017,19 +1017,16 @@
{
Text *text= CTX_data_edit_text(C);
- if(txt_has_sel(text)) {
- text_drawcache_tag_update(CTX_wm_space_text(C), 0);
+ text_drawcache_tag_update(CTX_wm_space_text(C), 0);
- txt_order_cursors(text);
- txt_comment(text);
- text_update_edited(text);
+ txt_order_cursors(text);
+ txt_comment(text);
+ text_update_edited(text);
- text_update_cursor_moved(C);
- WM_event_add_notifier(C, NC_TEXT|NA_EDITED, text);
- return OPERATOR_FINISHED;
- }
-
- return OPERATOR_CANCELLED;
+ text_update_cursor_moved(C);
+ WM_event_add_notifier(C, NC_TEXT|NA_EDITED, text);
+
+ return OPERATOR_FINISHED;
}
void TEXT_OT_comment(wmOperatorType *ot)
@@ -1050,20 +1047,16 @@
{
Text *text= CTX_data_edit_text(C);
- if(txt_has_sel(text)) {
- text_drawcache_tag_update(CTX_wm_space_text(C), 0);
+ text_drawcache_tag_update(CTX_wm_space_text(C), 0);
- txt_order_cursors(text);
- txt_uncomment(text);
- text_update_edited(text);
+ txt_order_cursors(text);
+ txt_uncomment(text);
+ text_update_edited(text);
- text_update_cursor_moved(C);
- WM_event_add_notifier(C, NC_TEXT|NA_EDITED, text);
+ text_update_cursor_moved(C);
+ WM_event_add_notifier(C, NC_TEXT|NA_EDITED, text);
- return OPERATOR_FINISHED;
- }
-
- return OPERATOR_CANCELLED;
+ return OPERATOR_FINISHED;
}
void TEXT_OT_uncomment(wmOperatorType *ot)
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
79/a2/6fd935a46c49771c74cd10f1bd83
Event Timeline
Log In to Comment