Flix
a787bcbf5c
Fix: script.reload() operator reloads current app template
...
Ref D12040
2021-07-30 21:43:22 +10:00
Bastien Montagne
82ff5dd911
Fix i18n utils_cli mistake.
...
Reported by James Monthea (@jmonteath), thanks.
2021-07-21 10:37:45 +02:00
Campbell Barton
265c3a4724
Cleanup: replace NB with NOTE in comments
2021-07-21 13:10:32 +10:00
Aaron Carlisle
24aae7ed63
Docs: Update RNA to user manual mappings
2021-07-19 18:41:58 -04:00
Sybren A. Stüvel
f52e3aa210
Asset Browser: Python mixin utility for category-specific panels
...
Using this mixin for a panel definition, it's possible to set in which
categories the panel should appear. This is used by the Pose Library
add-on.
2021-07-15 16:12:36 +02:00
Campbell Barton
432bfbf7a3
Cleanup: pep8
2021-07-06 12:05:27 +10:00
Julian Eisel
f7fbb518c8
Fix failure when baking actions with Bendy Bones
...
682a74e090 renamed Bendy Bones properties and replaced existing float
properties with float-vector properties. This updates the property names used
by the action baking operator (`NLA_OT_bake`).
2021-06-24 00:10:11 +02:00
Aaron Carlisle
a8f37763ca
RNA Manual Reference: Update Mapping File
2021-06-22 19:37:45 -04:00
Leon Zandman
c317f111c1
Cleanup: Spelling Mistakes
...
This patch fixes many minor spelling mistakes, all in comments or
console output. Mostly contractions like can't, won't, don't, its/it's,
etc.
Differential Revision: https://developer.blender.org/D11663
Reviewed by Harley Acheson
2021-06-22 10:54:50 -07:00
Gaia Clary
2851602052
Add a reason for why an Addon can not be loaded. This change gives a more 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-21 12:51:46 +02:00
Campbell Barton
013fc69ea8
Cleanup: unused argument & variable warnings
2021-06-15 10:50:43 +10:00
Campbell Barton
f29a738e23
PyAPI: use keyword only arguments
...
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-06-09 03:05:44 +10:00
Campbell Barton
98876d46ef
Fix T88899: __file__ not set for text.as_module()
2021-06-07 14:04:26 +10:00
Fynn Grotehans
d486ee2dbd
Update Camera presets
...
The (tracking) camera presets have not been updated in the last 7 or
more years, so they are very outdated. I found it pointless to have a
few specific camera models in the list and instead add the most commonly
used sensor sizes/film sizes. This way the list is shorter, easier to
maintain/becomes later outdated, and is more user friendly for most people
who don't own any of the specific cameras. I added the Crop Factor to the
Beginning of the name, so it gets sortet in the correct order and presets
are easier to find based on the size.
Reviewed By: #render_cycles, #motion_tracking, brecht, sergey
Differential Revision: https://developer.blender.org/D10739
2021-06-04 12:19:58 +02:00
Aaron Carlisle
4a1ba155d5
Merge branch 'blender-v2.93-release'
2021-05-27 21:27:48 -04:00
Aaron Carlisle
02395fead7
Docs: Update RNA to User Manual mappings
2021-05-27 21:25:31 -04:00
Bastien Montagne
e3faef686d
Fix/Refactor RNA ID preview getter creating preview data.
...
Same as with forcefields, accessors should never generate data.
2021-05-25 10:38:56 +02:00
Leon Zandman
865d1889da
Cleanup: spelling
...
Includes fixes to misspelled function names.
Ref D11280
2021-05-21 22:23:07 +10:00
Sybren A. Stüvel
0745afeddb
Merge remote-tracking branch 'origin/blender-v2.93-release'
2021-05-20 13:00:07 +02:00
dreamertooth
a1954e3807
Fix T86193: Bake Action, wrong rotation order for bones
...
Use bone rotation order to compute the baked rotation. This fixes a bug
introduced in rB0e85d701c654, where the object rotation order was
applied to the bone.
Maniphest Tasks: T88359, T86193
Reviewed By: sybren, GuiltyGhost, #animation_rigging
Differential Revision: https://developer.blender.org/D11282
2021-05-20 12:57:05 +02:00
Campbell Barton
4402c3006b
WM: check missing space-data & constraints in poll functions
...
Without this, menu search prints many errors in some contexts.
2021-05-18 20:57:40 +10:00
Germano Cavalcante
b11499939c
Python GPU: Replace part of the code that uses 'bgl' with 'gpu'
...
This is part of the process described in T80730.
The aim is to deprecate the bgl module.
Reviewed By: fclem, brecht, campbellbarton
Revision: D11147
2021-05-14 12:26:40 -03:00
Campbell Barton
265d97556a
PyAPI: use iterators for ID property methods (keys, values & items)
...
- Matches changes in Python 3.x dictionary methods.
- Iterating now raises a run-time error if the property-group changes
size during iteration.
- IDPropertyGroup.iteritems() has been removed.
- IDPropertyGroup View & Iterator types have been added.
- Some set functionality from dict_keys/values/items aren't yet
supported (isdisjoint method and boolean set style operations).
Proposed as part of T85675.
2021-05-15 00:36:49 +10:00
Aaron Carlisle
a5d2c19a5c
PyAPI Docs: Cleanup Formatting
2021-05-12 21:10:17 -04:00
Campbell Barton
aaa07a3a8f
PyAPI: remove deprecated 'wiki_url' for add-ons 'bl_info'
...
This was only kept for compatibility with older add-ons and has been
deprecated since 2.83.
Ref T85675
2021-05-12 22:02:12 +10:00
Aaron Carlisle
72cefdfd59
Update RNA to User Manual mapping
2021-05-06 17:23:39 -04:00
Ankit Meel
08f4bab658
System info: add OS version to sys_info.py
...
Match the output to the prefilled bug report script's output.
Make the output file self-contained.
Reviewed By: lichtwerk
Differential Revision: https://developer.blender.org/D11144
2021-05-05 10:08:04 +05:30
Dalai Felinto
191664acd2
Docs: "File > External Data pack operator" lookup for the manual
2021-05-04 16:20:56 +02:00
Alexander Gavrilov
2b46606af1
Merge branch 'blender-v2.93-release'
2021-05-03 14:03:00 +03:00
Bastien Montagne
a53d34a28a
Minor updates to i18n spellcheck tool.
2021-05-03 12:22:46 +02:00
Germano Cavalcante
6fff2427d6
Python GPU: Replace a few calls of the bgl module with gpu
...
Concludes these files:
[x]bpy_types.py
[x]operator_modal_draw.py
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D11129
2021-05-01 12:12:58 -03:00
Germano Cavalcante
c3a980436d
Documentation: Replace the bgl API in the gpu module exemples
2021-04-30 10:50:50 -03:00
Campbell Barton
0b7bda808e
Merge branch 'blender-v2.93-release'
2021-04-28 23:03:47 +10:00
Campbell Barton
0b6892f0ba
Fix T85688: ExportHelper adds multiple file name extensions
...
Replace the existing extension instead of adding it.
2021-04-28 23:00:53 +10:00
Aaron Carlisle
f5123b1fc9
Merge branch 'blender-v2.93-release'
2021-04-26 20:55:01 -04:00
Aaron Carlisle
51c13be820
Update RNA/User Manual Mappings
2021-04-26 20:53:15 -04:00
Jacques Lucke
d89d53b453
Merge branch 'blender-v2.93-release'
2021-04-26 16:44:06 +02:00
Erik Abrahamsson
a65d5dadeb
DeprecationWarning fix
...
This gets rid of a `DeprecationWarning` in bpy_types.py caused by invalid escape sequences.
More info here: https://docs.python.org/3/library/re.html
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D10998
2021-04-26 09:47:03 +02:00
Sybren A. Stüvel
7192ab614b
Animation: add "LocRotScaleCProp" keying set
...
Add a keying set that includes location, rotation, scale, and custom
properties.
The keying set is intentionally not based on the "Whole Character"
keying set. Instead, it is generic enough to be used in both object and
pose animation, making it possible to quickly switch between animating
characters and props without switching keying sets.
This is, according to @rikkert, what the Blender Studio animators need
99.9% of the time.
2021-04-22 10:33:07 +02:00
Campbell Barton
1beca76934
PyAPI: add bl_rna_utils.decompose_data_path
...
Utility function for splitting an RNA path, to be used by `bpy.ops.wm.*`
2021-03-31 15:03:19 +11:00
Campbell Barton
c59a7f44a1
Fix bl_rna_utils._TokenizeDataPath function argument extraction error
...
Converting functions with single arguments to a string
added an additional comma.
2021-03-31 15:01:44 +11:00
Campbell Barton
5a6d5d20de
UI: add description methods for wm.context_* operators
...
Generic context operators now look-up the RNA properties to extract
their description (when it's available).
Add `bl_rna_utils.data_path.property_definition_from_data_path()`
to handle the details of accessing the RNA property definition.
2021-03-31 01:02:08 +11:00
Campbell Barton
681a7d724b
PyAPI: replace repr with our own escape function in animsys_refactor
...
Use the same string escaping logic shared by RNA path resolving code.
2021-03-30 21:57:23 +11:00
Sybren A. Stüvel
d982ea9a9e
Fix error when an addon has no __init__.py
...
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.
2021-03-26 10:46:26 +01:00
Aaron Carlisle
e5b973100d
Update RNA to Manual Map
2021-03-22 23:23:47 -04:00
Campbell Barton
11efc9087b
Cleanup: remove workaround for Python 3.7x crashing with libedit
...
This removes workaround for T43491. It's no longer needed as
Python 3.9x supports libedit as an alternative to readline
on all platforms.
2021-03-06 19:31:49 +11:00
Campbell Barton
37793b90be
Cleanup: unused imports
2021-03-06 19:26:18 +11:00
Campbell Barton
bd79691599
Cleanup: unused variables
2021-03-06 19:00:18 +11:00
Campbell Barton
663b0bb04c
UI: minor changes to preset sorting
...
- Only sort by the preset name (not it's directory).
- Remove redundant string conversion.
- Only call lower() once on the input.
- Don't assign the lambda to a variable for single use.
2021-03-05 17:10:11 +11:00
Aaron Carlisle
c2a8676544
Presets: Improve sort order of presets
...
Pythons sort function does not sort naturally,
to solve this a custom sort key is used.
This issue is apparent when trying D10553
2021-03-04 23:22:47 -05:00