diff options
Diffstat (limited to 'release')
4 files changed, 10 insertions, 10 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py index 40b76b617b3..fd4488ecd73 100644 --- a/release/scripts/modules/bl_i18n_utils/utils.py +++ b/release/scripts/modules/bl_i18n_utils/utils.py @@ -185,9 +185,9 @@ def list_po_dir(root_path, settings): """ Generator. List given directory (expecting one sub-directory per languages) and return all files matching languages listed in settings. - + Yield tuples (can_use, uid, num_id, name, isocode, po_path) - + Note that po_path may not actually exists. """ isocodes = ((e, os.path.join(root_path, e, e + ".po")) for e in os.listdir(root_path)) diff --git a/release/scripts/modules/bl_i18n_utils/utils_cli.py b/release/scripts/modules/bl_i18n_utils/utils_cli.py index d38911c122d..76dd8a740c5 100644 --- a/release/scripts/modules/bl_i18n_utils/utils_cli.py +++ b/release/scripts/modules/bl_i18n_utils/utils_cli.py @@ -103,22 +103,22 @@ def main(): sub_parsers = parser.add_subparsers() sub_parser = sub_parsers.add_parser('update_po', help="Update a PO file from a given POT template file") - sub_parser.add_argument('--template', metavar='template.pot', required=True, + sub_parser.add_argument('--template', metavar='template.pot', required=True, help="The source pot file to use as template for the update.") sub_parser.add_argument('--dst', metavar='dst.po', required=True, help="The destination po to update.") - sub_parser.set_defaults(func=update_po) + sub_parser.set_defaults(func=update_po) sub_parser = sub_parsers.add_parser('cleanup_po', help="Cleanup a PO file (check for and fix some common errors, remove commented messages).") sub_parser.add_argument('--src', metavar='src.po', required=True, help="The source po file to clean up.") sub_parser.add_argument('--dst', metavar='dst.po', help="The destination po to write to.") - sub_parser.set_defaults(func=cleanup_po) + sub_parser.set_defaults(func=cleanup_po) sub_parser = sub_parsers.add_parser('strip_po', help="Reduce all non-essential data from given PO file (reduce its size).") sub_parser.add_argument('--src', metavar='src.po', required=True, help="The source po file to strip.") sub_parser.add_argument('--dst', metavar='dst.po', help="The destination po to write to.") - sub_parser.set_defaults(func=strip_po) + sub_parser.set_defaults(func=strip_po) sub_parser = sub_parsers.add_parser('rtl_process_po', help="Pre-process PO files for RTL languages.") @@ -128,7 +128,7 @@ def main(): sub_parser = sub_parsers.add_parser('language_menu', help="Generate the text file used by Blender to create its language menu.") - sub_parser.set_defaults(func=language_menu) + sub_parser.set_defaults(func=language_menu) args = parser.parse_args(sys.argv[1:]) diff --git a/release/scripts/startup/bl_ui/properties_view_layer.py b/release/scripts/startup/bl_ui/properties_view_layer.py index 27df3b10853..751558a4bed 100644 --- a/release/scripts/startup/bl_ui/properties_view_layer.py +++ b/release/scripts/startup/bl_ui/properties_view_layer.py @@ -187,8 +187,8 @@ class ViewLayerCryptomattePanel(ViewLayerButtonsPanel, Panel): col.prop(view_layer, "use_pass_cryptomatte_material", text="Material") col.prop(view_layer, "use_pass_cryptomatte_asset", text="Asset") col = layout.column() - col.active = any((view_layer.use_pass_cryptomatte_object, - view_layer.use_pass_cryptomatte_material, + col.active = any((view_layer.use_pass_cryptomatte_object, + view_layer.use_pass_cryptomatte_material, view_layer.use_pass_cryptomatte_asset)) col.prop(view_layer, "pass_cryptomatte_depth", text="Levels") col.prop(view_layer, "use_pass_cryptomatte_accurate", text="Accurate Mode") diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index 761e60aef30..eb80a3e010f 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -207,7 +207,7 @@ class USERPREF_PT_interface_display(InterfacePanel, CenterAlignMixIn, Panel): col.prop(view, "ui_line_width", text="Line Width") col.prop(view, "show_splash", text="Splash Screen") col.prop(view, "show_developer_ui") - + col.separator() col = layout.column(heading="Tooltips", align=True) |