Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-06-02Cleanup: remove "<pep8 compliant>" from headersCampbell Barton
It can be assumed that all scripts comply with basic pep8 formatting regarding white-space, indentation etc. Also remove note in best practices page & update `tests/python/pep8.py`. If we want to exclude some scripts from make format, this can be done by adding them to `ignore_files` in: source/tools/utils_maintenance/autopep8_format_paths.py Or using `# nopep8` for to ignore for individual lines. Ref T98554
2022-02-23Cleanup: Simplify manual url version handlingAaron Carlisle
Recently we changed the build pipeline to always create a version number in the url and point 'dev' to the latest version rather than creating the version number url once we release. This makes the check to `bpy.app.version_cycle` unnecessary.
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2021-06-21Add a reason for why an Addon can not be loaded. This change gives a more ↵Gaia Clary
detailed explanation of the issue and may help the Addon Developer to identify what exactly needs to be changed. The current message 'addon not loaded' is a bit too sparse. Differential Revision: https://developer.blender.org/D11655
2021-06-08PyAPI: use keyword only argumentsCampbell Barton
Use keyword only arguments for the following functions. - addon_utils.module_bl_info 2nd arg `info_basis`. - addon_utils.modules 1st `module_cache`, 2nd arg `refresh`. - addon_utils.modules_refresh 1st arg `module_cache`. - bl_app_template_utils.activate 1nd arg `template_id`. - bl_app_template_utils.import_from_id 2nd arg `ignore_not_found`. - bl_app_template_utils.import_from_path 2nd arg `ignore_not_found`. - bl_keymap_utils.keymap_from_toolbar.generate 2nd & 3rd args `use_fallback_keys` & `use_reset`. - bl_keymap_utils.platform_helpers.keyconfig_data_oskey_from_ctrl 2nd arg `filter_fn`. - bl_ui_utils.bug_report_url.url_prefill_from_blender 1st arg `addon_info`. - bmesh.types.BMFace.copy 1st & 2nd args `verts`, `edges`. - bmesh.types.BMesh.calc_volume 1st arg `signed`. - bmesh.types.BMesh.from_mesh 2nd..4th args `face_normals`, `use_shape_key`, `shape_key_index`. - bmesh.types.BMesh.from_object 3rd & 4th args `cage`, `face_normals`. - bmesh.types.BMesh.transform 2nd arg `filter`. - bmesh.types.BMesh.update_edit_mesh 2nd & 3rd args `loop_triangles`, `destructive`. - bmesh.types.{BMVertSeq,BMEdgeSeq,BMFaceSeq}.sort 1st & 2nd arg `key`, `reverse`. - bmesh.utils.face_split 4th..6th args `coords`, `use_exist`, `example`. - bpy.data.libraries.load 2nd..4th args `link`, `relative`, `assets_only`. - bpy.data.user_map 1st..3rd args `subset`, `key_types, `value_types`. - bpy.msgbus.subscribe_rna 5th arg `options`. - bpy.path.abspath 2nd & 3rd args `start` & `library`. - bpy.path.clean_name 2nd arg `replace`. - bpy.path.ensure_ext 3rd arg `case_sensitive`. - bpy.path.module_names 2nd arg `recursive`. - bpy.path.relpath 2nd arg `start`. - bpy.types.EditBone.transform 2nd & 3rd arg `scale`, `roll`. - bpy.types.Operator.as_keywords 1st arg `ignore`. - bpy.types.Struct.{keyframe_insert,keyframe_delete} 2nd..5th args `index`, `frame`, `group`, `options`. - bpy.types.WindowManager.popup_menu 2nd & 3rd arg `title`, `icon`. - bpy.types.WindowManager.popup_menu_pie 3rd & 4th arg `title`, `icon`. - bpy.utils.app_template_paths 1st arg `subdir`. - bpy.utils.app_template_paths 1st arg `subdir`. - bpy.utils.blend_paths 1st..3rd args `absolute`, `packed`, `local`. - bpy.utils.execfile 2nd arg `mod`. - bpy.utils.keyconfig_set 2nd arg `report`. - bpy.utils.load_scripts 1st & 2nd `reload_scripts` & `refresh_scripts`. - bpy.utils.preset_find 3rd & 4th args `display_name`, `ext`. - bpy.utils.resource_path 2nd & 3rd arg `major`, `minor`. - bpy.utils.script_paths 1st..4th args `subdir`, `user_pref`, `check_all`, `use_user`. - bpy.utils.smpte_from_frame 2nd & 3rd args `fps`, `fps_base`. - bpy.utils.smpte_from_seconds 2nd & 3rd args `fps`, `fps_base`. - bpy.utils.system_resource 2nd arg `subdir`. - bpy.utils.time_from_frame 2nd & 3rd args `fps`, `fps_base`. - bpy.utils.time_to_frame 2nd & 3rd args `fps`, `fps_base`. - bpy.utils.units.to_string 4th..6th `precision`, `split_unit`, `compatible_unit`. - bpy.utils.units.to_value 4th arg `str_ref_unit`. - bpy.utils.user_resource 2nd & 3rd args `subdir`, `create` - bpy_extras.view3d_utils.location_3d_to_region_2d 4th arg `default`. - bpy_extras.view3d_utils.region_2d_to_origin_3d 4th arg `clamp`. - gpu.offscreen.unbind 1st arg `restore`. - gpu_extras.batch.batch_for_shader 4th arg `indices`. - gpu_extras.batch.presets.draw_circle_2d 4th arg `segments`. - gpu_extras.presets.draw_circle_2d 4th arg `segments`. - imbuf.types.ImBuf.resize 2nd arg `resize`. - imbuf.write 2nd arg `filepath`. - mathutils.kdtree.KDTree.find 2nd arg `filter`. - nodeitems_utils.NodeCategory 3rd & 4th arg `descriptions`, `items`. - nodeitems_utils.NodeItem 2nd..4th args `label`, `settings`, `poll`. - nodeitems_utils.NodeItemCustom 1st & 2nd arg `poll`, `draw`. - rna_prop_ui.draw 5th arg `use_edit`. - rna_prop_ui.rna_idprop_ui_get 2nd arg `create`. - rna_prop_ui.rna_idprop_ui_prop_clear 3rd arg `remove`. - rna_prop_ui.rna_idprop_ui_prop_get 3rd arg `create`. - rna_xml.xml2rna 2nd arg `root_rna`. - rna_xml.xml_file_write 4th arg `skip_typemap`.
2021-05-12PyAPI: remove deprecated 'wiki_url' for add-ons 'bl_info'Campbell Barton
This was only kept for compatibility with older add-ons and has been deprecated since 2.83. Ref T85675
2021-03-26Fix error when an addon has no `__init__.py`Sybren A. Stüvel
When an addon has been removed, but its `.pyc` files are still there, the Python module can still be loaded. However, because `__init__.py` is missing, it becomes a namespace instead of a module, and its `__file__` will be set to `None`. As a result, it's impossible to get the mtime from the file (because there is none). This should not influence any regularly uninstalled add-on, as that would just remove the add-on's directory; I ran into the problem when switching Git branches caused an add-on's Python files to disappear while keeping the `__pycache__` directory around.
2020-09-10Fix T80650: Malformed bl_info header causes empty add-on listingCampbell Barton
2020-08-17Cleanup: explain why checking the enabled state twice is neededCampbell Barton
Address concern raised with the commit that added this extra check.
2020-07-17Cleanup: remove f-string use in favor of percentage for formattingCampbell Barton
2020-06-26Cleanup: use percentage formattingCampbell Barton
`str.format` and `f-string` use was minimal. Prefer using a single style of string formatting unless an alternative is more widely adopted.
2020-03-05Addons: Allow a user manual url prefix in doc_urlAaron Carlisle
This was raised in T74017, the issue being that we point to `/dev` version of the manual for the addons when we want to point to a specific version instead. Instead of manually updating the URL every release we can do this. The `bl_info` for addons will need to be updated in the format of `'doc_url': {BLENDER_MANUAL_URL}/addons/import_export/scene_gltf2.html",` Differential Revision: https://developer.blender.org/D6995
2020-03-05Addons: deprecate 'wiki_url'Aaron Carlisle
When running with debug enabled ('-d' argument), warnings are printed for add-ons which are not yet updated. Reminder to name things based on what they do, not the technologies they use :)
2020-02-04Fix T58842: Add-ons Import/Export entries disapear when enabling FilterPhilipp Oeser
Addons option This removes the 'use_owner' option feature from rB61c8ed40f5df. (this wasnt working well when addons are enabled and when switching workspaces) Now Addon filtering is just bypassed for Import/Export menus. (by introducing/setting bl_owner_use_filter = False) Maniphest Tasks: T58842 Differential Revision: https://developer.blender.org/D6740
2019-08-17Fix T68760: "Reload Scripts" '_sys_path_ensure' missingCampbell Barton
Missed this in recent update.
2019-08-15Fix T68014: Add-on's override Python built-in modulesCampbell Barton
Append addon paths to the sys.path to avoid name collisions with system modules.
2019-06-21Cleanup: spelling, grammar, and other correctionsCampbell Barton
D5084 by @nBurn with edits
2019-05-09Cleanup: unused args/vars/imports in modulesCampbell Barton
2019-03-27Fix T62901: Bad handling of missing addon categoryJacques Lucke
2019-03-18Fix noisy console messages about unported add-ons by default.Bastien Montagne
* Make those single-line warning, there is really no reason to raise exception (i.e. error) for that. * Only show them when `--debug` option is set.
2019-03-17Cleanup: unused variablesCampbell Barton
2019-03-16Fix T62576: The remaining two unported official add-ons: X3D and 3DS.Bastien Montagne
X3D has been (basically) ported in rBAe8da70ab73d2dd5ff46, and 3DS has been downgraded to 'community' support, so we can get rid of that ugly 'slience warning' hack.
2018-12-21RNA: naming, user-preferences -> preferencesCampbell Barton
2018-10-19Merge branch 'master' into blender2.8Campbell Barton
2018-10-19Fix error disabling all addonsCampbell Barton
2018-10-02Addons: reactivate BVH and PLY format addonsJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D3758
2018-09-26Addons: reactivate 'STL format' addonJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D3735
2018-09-21Re-enable OBJ add-on.Bastien Montagne
2018-09-21Re-enable FBX add-on.Bastien Montagne
2018-09-19Addon Utils: Green light the uv layout addonDalai Felinto
2018-09-03Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenkernel/intern/collision.c
2018-09-03Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3668
2018-07-31Cleanup: pep8, windows line endingsCampbell Barton
2018-07-14Merge branch 'master' into blender2.8Campbell Barton
2018-07-14Cleanup: use f-string for addon_utilsCampbell Barton
2018-07-06Remove print left in by accidentCampbell Barton
2018-07-06Addons: silence warnings instead of disablingCampbell Barton
2018-07-03addons: disable addons with versions below 2.8Campbell Barton
2018-07-03Merge branch 'master' into blender2.8Campbell Barton
2018-07-03Cleanup: pep8Campbell Barton
2018-03-01WorkSpace: show/hode opt-out support for addonsCampbell Barton
In some cases it doesn't make sense for add-ons to be listed for hiding. Especially for import/export which use minimal UI space. This adds `bl_info["use_owner"]` to add-ons, currently defaulting to True for all non Import-Export add-ons.
2018-02-28WorkSpace: UI filtering for add-onsCampbell Barton
Allows for each workspace to have it's own add-ons on display. Filtering for: Panels, Menus, Keymaps & Manipulators. Automatically applies to add-ons at the moment. Access from workspace, toggled off by default once enabled, add-ons can be white-listed. See D3076
2018-02-01Cleanup: Python code-style (addons, wm)Campbell Barton
2017-03-23addon_utils: add disable_all functionCampbell Barton
2017-02-26Improve add-on UI error messageCampbell Barton
Show the paths of the duplicate addons D791 by @gregzaal
2016-07-30Cleanup: pep8Campbell Barton
2016-01-07addon_utils: improve docstringsCampbell Barton
Also make error handler take the exception as its argument.
2015-11-16Python: use keyword only args for addon_utilsCampbell Barton
2015-06-23Missed changing default arg in addon_utils.disableCampbell Barton
2015-06-14Fix error enabling an already enabled addonCampbell Barton
Would run register() twice causing warning with `register_module()` which expects new classes to be defined. Now run unregister() before re-registering.