diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-27 08:18:01 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-27 08:18:01 +0400 |
commit | 3ff36f928c008aa5c0f114ec0f3b83f1db85766a (patch) | |
tree | d9d07ffab5549b3463c0ced71698f510607543c6 | |
parent | f3b7a49d5bac0179aeaaf5584fd0051ce5de1cdc (diff) |
3d text tool - 'insert lorem' was crashing, also add this to the text menu.
4 files changed, 8 insertions, 3 deletions
diff --git a/doc/python_api/examples/bpy.app.translations.py b/doc/python_api/examples/bpy.app.translations.py index 2c21bb54ba9..01d5a987215 100644 --- a/doc/python_api/examples/bpy.app.translations.py +++ b/doc/python_api/examples/bpy.app.translations.py @@ -4,7 +4,7 @@ Intro .. warning:: Most of this object should only be useful if you actually manipulate i18n stuff from Python. - If you are a regular addon, you should only bother about :const:`contexts` member, + If you are a regular addon, you should only bother about :const:`contexts` member, and the :func:`register`/:func:`unregister` functions! The :func:`pgettext` family of functions should only be used in rare, specific cases (like e.g. complex "composited" UI strings...). diff --git a/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py b/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py index c1887d8b41d..df591521440 100644 --- a/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py +++ b/doc/python_api/examples/bpy.types.WindowManager.popup_menu.py @@ -8,6 +8,7 @@ Note that they will not block the scripts execution, so the caller can't wait fo import bpy + def draw(self, context): self.layout.label("Hello World") diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 5e2095354e7..51995ba5012 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -2220,6 +2220,10 @@ class VIEW3D_MT_edit_font(Menu): layout.operator("font.style_toggle", text="Toggle Underline").style = 'UNDERLINE' layout.operator("font.style_toggle", text="Toggle Small Caps").style = 'SMALL_CAPS' + layout.separator() + + layout.operator("font.insert_lorem") + class VIEW3D_MT_edit_text_chars(Menu): bl_label = "Special Characters" diff --git a/source/blender/editors/curve/lorem.c b/source/blender/editors/curve/lorem.c index 7823be3df6d..52f5101f58a 100644 --- a/source/blender/editors/curve/lorem.c +++ b/source/blender/editors/curve/lorem.c @@ -653,5 +653,5 @@ const char ED_lorem[] = { 32, 115, 101, 100, 32, 116, 117, 114, 112, 105, 115, 32, 117, 116, 32, 100, 111, 108, 111, 114, 32, 112, 108, 97, 99, 101, 114, 97, 116, 32, 100, 105, 103, 110, 105, 115, 115, 105, 109, 46, 32, 81, 117, 105, 115, 113, 117, 101, 32, 113, 117, 105, 115, 32, 108, 101, 111, 46, 32, 67, 114, 97, 115, 32, 117, 108, 116, 114, 105, 99, 101, 115, 46, 32, 77, 97, 101, 99, 101, 110, 97, 115, 32, 104, 101, 110, 100, 114, 101, 114, 105, 116, 32, 97, 117, 99, -116, 111, 114, 32, 116, 111, 114, 116, 111, 114, 46, 32, 69, 116, 105, 97, 109, 32, 115, 105, 116, 32, 97, 109, 101, 116, 32, 97, 114, 99, 117, 46 -}; +116, 111, 114, 32, 116, 111, 114, 116, 111, 114, 46, 32, 69, 116, 105, 97, 109, 32, 115, 105, 116, 32, 97, 109, 101, 116, 32, 97, 114, 99, 117, 46, +0}; |