mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #151742: Docs: Fix Typo in bpy.types.USDHook code
Changes to example code introduced with db88381e75 contains a typo,
using `data block` instead of the standard `data-block`.
This changes ensures consistency with the spelling of `data-block` with
other API example files.
Pull Request: https://projects.blender.org/blender/blender/pulls/151850
This commit is contained in:
parent
c8cabf2ca3
commit
6577606415
1 changed files with 3 additions and 3 deletions
|
|
@ -251,18 +251,18 @@ class USDHookExample(bpy.types.USDHook):
|
|||
"""
|
||||
|
||||
###########################################################
|
||||
# Store some USD metadata on each imported data block.
|
||||
# Store some USD metadata on each imported data-block.
|
||||
###########################################################
|
||||
prim_map = import_context.get_prim_map()
|
||||
|
||||
# Store prim path as a string on each data block created.
|
||||
# Store prim path as a string on each data-block created.
|
||||
for prim_path, data_blocks in prim_map.items():
|
||||
|
||||
# Type hints for prim map.
|
||||
prim_path: Sdf.Path
|
||||
data_blocks: list[bpy.types.ID]
|
||||
|
||||
# Loop over mapped data blocks to store some metadata.
|
||||
# Loop over mapped data-blocks to store some metadata.
|
||||
for data_block in data_blocks:
|
||||
data_block["prim_path"] = str(prim_path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue