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-09-05Cleanup: make formatBrecht Van Lommel
2022-09-05I18n: translate untitled file namesDamien Picard
When saving, the default file name is "untitled" regardless of selected language. This can be translated, like many graphical applications do. This applies to: - blend file - alembic file - collada file - obj file - usd file - rendered image - grease pencil export - subtitles export - other Python exports through ExportHelper Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15868
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-03-04Cleanup: unused Python variables & importsCampbell Barton
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
2022-01-24Cleanup: Grammar: its self vs. itselfHans Goudey
2021-10-11Fix T91169: bpy_extras.io_utils.create_derived_objects -> duplis errorCampbell Barton
This function now takes a depsgraph and a list of objects to avoid inefficient O(n^2) iteration when extracting instances from all objects in the scene. Returning an object -> instance map. Note that keeping compatibility with the existing API wasn't practical in this case since instances can no longer be generated from the scene and it's objects.
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-04-28Fix T85688: ExportHelper adds multiple file name extensionsCampbell Barton
Replace the existing extension instead of adding it.
2020-01-26Fix T73357: Multiple importers failJulian Eisel
Very stupid mistake in ba8de85299ff, registered property for wrong class. It should be registered for the PLY importer add-on only.
2020-01-22PLY Import: Hide empty operator properties sidebar in file browserJulian Eisel
The sidebar is empty for the PLY importer, so better to hide it.
2019-12-02Fix T71596: Bug in io_utils api breaking only on windows.Bastien Montagne
Stupid mistake, 'original' filepath is a blender-flavored one, with potentially weird things like the '//' relative 'header'... This can work on linux (also it could have broken in other places too), but on windows that is fully invalid path and python `os.path` library just generates empty result here. Simply using proper valid path instead fixes it...
2019-09-16Cleanup: use fixed indent in PythonCampbell Barton
Reduce right-shift.
2019-05-09Cleanup: unused args/vars/imports in modulesCampbell Barton
2018-12-05Fix own mistake in recent rB74361eebe68c.Bastien Montagne
One cannot assign to Class.__dict__, that is not a 'real' dictionnary... Thanks to @JacquesLucke for noting the issue.
2018-12-05Fix T58772: Stray "forward" and "up" options in 2.8 import addons?Bastien Montagne
Nice side-effect of using new __annotations__ thingy to store dynamically-generated fields in a class: __annotations__ dict is not ensured to exist for a given class, so we may end up modifying on of the parents' one!
2018-11-28Use collection and instance terminology in Python APISergey Sharybin
This follows naming convention agreed on in T56648.
2018-09-30io_utils: remove `orientation_helper_factory`.Bastien Montagne
Now we only use orientation_helper decorator.
2018-09-21Py io_utils: deprecate `orientation_helper_factory` and add new ↵Bastien Montagne
`orientation_helper` decorator. This fixes warning about not using annotations, and a decorator here is a much cleaner solution anyway.
2018-07-11PyAPI: Use annotations for RNA definitionsCampbell Barton
- Logical use of fields since they define type information. - Avoids using ordered-dict metaclass. Properties using regular assignments will print a warning and load, however the order is undefined.
2018-07-03Cleanup: pep8Campbell Barton
2017-11-29Cleanup: Python importsCampbell Barton
Split over lines to diff more easily.
2016-01-31Cleanup: pep8Campbell Barton
2015-05-17Cleanup: pep8Campbell Barton
2015-05-12Doc: minor fixesCampbell Barton
- check for class/static methods assumed nonzero args. - subclass references and set-flag items are now sorted. - use 'order' for Py operator mix-ins, so operator settings don't show in random order.
2015-03-24Fix T44089: All addons do not use same default for orientations.Bastien Montagne
Transformed 'OrientationHelper' class into 'orientation_helper_factory' function, which returns an OrientationHelper customized class with specified default axes.
2015-01-14PyAPI: name OrientationHelper (io prefix in module name already)Campbell Barton
2015-01-14Py IO utils: Add helper class to handle orientation (axes).Bastien Montagne
Also 'fix' T43243, since we can easily add a common better behavior now when both axis settings are incompatible, by systematically changing the other axis. Will update 'main' addons in next commit, contrib ones I'll let to the authors (old behavior is still possible anyway).
2014-02-13Code cleanup: styleCampbell Barton
2013-08-18More "relpath" try/except protection...Bastien Montagne
2013-04-10py api: path_reference_copy() use try/except when copying images, can fail ↵Campbell Barton
for odd reasons (currently fails if the dest dir is a symlink and not using expected permissions).
2013-02-07code cleanup: use exist_ok keyword arg to os.makedirs() rather then checking ↵Campbell Barton
if the dir exists first.
2013-01-16style cleanupCampbell Barton
2013-01-15fix issue reported in '[#33876] bpy.path.ensure_ext adds extension twice / ↵Campbell Barton
extra period if filename empty, just a period or equal to extension' For python operators that used the ExportHelper mix-in class, an empty file field would become '.ext', entering and existing the text field would become '.ext.ext', Now only add an extension if the filename part of the path is set, so '.ext' will still become '.ext.ext' but having only the extension isn't so likely to happen in the first place now. This is a different fix then the changes suggested in the report but I'd prefer to keep path functions stupid+predictable.
2012-07-03First load of spell and typo fixes (mostly UI messages, but also one or two ↵Bastien Montagne
pieces of code using mis-spelled names).
2012-02-27Various fixes to UI messages (among other things, all messages needed it ↵Bastien Montagne
should now be capitalized).
2011-12-22update axis conversion for recent matrix changesCampbell Barton
2011-12-06attempt to fix defione for qtcreator project file and cycles define.Campbell Barton
2011-10-17correct spelling errors in commentsCampbell Barton
2011-10-11py api: bpy_extras.io_utils.path_reference() - added library argument so ↵Campbell Barton
exporters get the paths of linked images right.
2011-09-19/release/scripts: Removed final points in UI strings and messages.Bastien Montagne
2011-08-26correct missing bpy doc references.Campbell Barton
2011-08-15py api - optional sep argument for bpy_extra.io_utils.unique_name() since ↵Campbell Barton
for some formats '.' is an invalid char.
2011-08-08use static sets rather then tuples, python optimizes this case.Campbell Barton
minor change to lightmap unpack collecting unique meshes.
2011-08-03fix [#28151] export OBJ don't save the extensionCampbell Barton
also correct some typos
2011-07-31py api: sphinx doc corrections, pep8 cleanup and style edits, also added ↵Campbell Barton
__all__ to some modules which were missing it.
2011-07-29pep8 cleanup, also print message when attempting to run in animation player ↵Campbell Barton
mode.
2011-07-28fix error in writing dupligroups for X3D export, may have effected other ↵Campbell Barton
exporters too.
2011-07-18fix [#27971] Blender OBJ export with Z-Up setting produces an error and failsCampbell Barton
changes to extensions coming up...
2011-07-10fix for various python bugs and remove unused var.Campbell Barton