[Bf-blender-cvs] [59ee5add128] master: Usual UI messages fixes & tweaks.

Bastien Montagne noreply at git.blender.org
Mon Jan 23 12:39:13 CET 2023


Commit: 59ee5add1283c8a7bbe7d3e6ada521a6c41e47e7
Author: Bastien Montagne
Date:   Mon Jan 23 12:31:43 2023 +0100
Branches: master
https://developer.blender.org/rB59ee5add1283c8a7bbe7d3e6ada521a6c41e47e7

Usual UI messages fixes & tweaks.

===================================================================

M	source/blender/windowmanager/intern/wm_window.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 26dbd6ce96f..1c029a6902d 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -1723,14 +1723,13 @@ static uiBlock *block_create_opengl_usage_warning(struct bContext *C,
 
   /* Title and explanation text. */
   uiLayout *col = uiLayoutColumn(layout, false);
-  uiItemL_ex(col, TIP_("Python script uses OpenGL for drawing."), ICON_NONE, true, false);
+  uiItemL_ex(col, TIP_("Python script uses OpenGL for drawing"), ICON_NONE, true, false);
   uiItemL(col, TIP_("This may lead to unexpected behavior"), ICON_NONE);
-  uiItemL(
-      col,
-      TIP_("One of the add-ons or scripts is using OpenGL and will not work correct on Metal."),
-      ICON_NONE);
   uiItemL(col,
-          TIP_("Please contact the developer of the add-on to migrate to use 'gpu' module."),
+          TIP_("One of the add-ons or scripts is using OpenGL and will not work correct on Metal"),
+          ICON_NONE);
+  uiItemL(col,
+          TIP_("Please contact the developer of the add-on to migrate to use 'gpu' module"),
           ICON_NONE);
   if (G.opengl_deprecation_usage_filename) {
     char location[1024];
@@ -1738,7 +1737,7 @@ static uiBlock *block_create_opengl_usage_warning(struct bContext *C,
         location, "%s:%d", G.opengl_deprecation_usage_filename, G.opengl_deprecation_usage_lineno);
     uiItemL(col, location, ICON_NONE);
   }
-  uiItemL(col, TIP_("See system tab in preferences to switch to OpenGL backend."), ICON_NONE);
+  uiItemL(col, TIP_("See system tab in preferences to switch to OpenGL backend"), ICON_NONE);
 
   uiItemS(layout);
 
@@ -1769,7 +1768,7 @@ void wm_test_opengl_deprecation_warning(bContext *C)
       &wm->reports,
       RPT_ERROR,
       TIP_("One of the add-ons or scripts is using OpenGL and will not work correct on Metal. "
-           "Please contact the developer of the add-on to migrate to use 'gpu' module."));
+           "Please contact the developer of the add-on to migrate to use 'gpu' module"));
 
   if (win) {
     wmWindow *prevwin = CTX_wm_window(C);



More information about the Bf-blender-cvs mailing list