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:
Nick Alberelli 2025-12-18 18:36:25 +01:00 • committed by Jesse Yurkovich
parent c8cabf2ca3
commit 6577606415

View file

@ -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)