Extensions: suppress noisy "bl_info" prints unless --debug-python is set
Ref !119521
This commit is contained in:
parent
3135e766ec
commit
0b13d1f31a
@ -425,6 +425,9 @@ def enable(module_name, *, default_set=False, persistent=False, handle_error=Non
|
|||||||
if bl_info is not None:
|
if bl_info is not None:
|
||||||
# Use `_init` to detect when `bl_info` was generated from the manifest, see: `_bl_info_from_extension`.
|
# Use `_init` to detect when `bl_info` was generated from the manifest, see: `_bl_info_from_extension`.
|
||||||
if type(bl_info) is dict and "_init" not in bl_info:
|
if type(bl_info) is dict and "_init" not in bl_info:
|
||||||
|
# This print is noisy, hide behind a debug flag.
|
||||||
|
# Once `bl_info` is fully deprecated this should be changed to always print a warning.
|
||||||
|
if _bpy.app.debug_python:
|
||||||
print(
|
print(
|
||||||
"Add-on \"%s\" has a \"bl_info\" which will be ignored in favor of \"%s\"" %
|
"Add-on \"%s\" has a \"bl_info\" which will be ignored in favor of \"%s\"" %
|
||||||
(module_name, _ext_manifest_filename_toml)
|
(module_name, _ext_manifest_filename_toml)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user