Merge branch 'master' into blender2.8
authorCampbell Barton <ideasman42@gmail.com>
Tue, 3 Jul 2018 05:23:15 +0000 (07:23 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 3 Jul 2018 05:23:15 +0000 (07:23 +0200)
source/blender/editors/interface/interface_ops.c

index 3457d2e2eebf8aa10be7867a829a499775648cc2..96128aa29f0b5a15a35caaeaf3523831d87f23bd 100644 (file)
@@ -948,11 +948,14 @@ void UI_editsource_active_but_test(uiBut *but)
 
 static int editsource_text_edit(
         bContext *C, wmOperator *op,
-        char filepath[FILE_MAX], int line)
+        const char filepath[FILE_MAX], const int line)
 {
        struct Main *bmain = CTX_data_main(C);
        Text *text;
 
+       /* Developers may wish to copy-paste to an external editor. */
+       printf("%s:%d\n", filepath, line);
+
        for (text = bmain->text.first; text; text = text->id.next) {
                if (text->name && BLI_path_cmp(text->name, filepath) == 0) {
                        break;