mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Refactor: Geometry Nodes: add BundleKey type
Previously, a raw `UString` was used as bundle key. However, that did not capture all the constraints put on the key (some characters are forbidden). This patch adds a smaller `BundleKey` wrapper around `UString` that ensures these constraints during construction so that code using the type does not have to check it again. This might also become useful when we want `Bundle` to become a thinner wrapper around `Map` instead of duplicating large parts of its interface. Pull Request: https://projects.blender.org/blender/blender/pulls/159023
This commit is contained in:
parent
578ebff417
commit
761c881737
25 changed files with 285 additions and 189 deletions
|
|
@ -113,7 +113,7 @@ def api_dump(use_properties=True, use_functions=True):
|
|||
sys.stderr.write("\n\nEOF\n")
|
||||
else:
|
||||
text = bpy.data.texts.new(name="api.py")
|
||||
text.from_string(data)
|
||||
text.from_str(data)
|
||||
|
||||
print("END")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue