Blender Git Commit Log
Git Commits -> Revision 08dbc4f
Revision 08dbc4f by Campbell Barton (master) February 21, 2021, 11:37 (GMT) |
PyAPI: use postponed annotations to support Python 3.10 Support Python 3.10a5 or 3.9x with support explicitly enabled. - Enable Python's postponed annotations for Blender's RNA classes types registered on startup. - Using postponed annotations has implications for how they are defined, since they must evaluate in the modules name-space instead of the classes name-space. See changes to annotations in `release/scripts`. - Use `from __future__ import annotations` at the top of the module to ensure the script will run with Python 3.10. - Old logic is kept since it could be used if PEP-649 is supported. Resolves T83626 Ref D10474 |
Commit Details:
Full Hash: 08dbc4f996e4e95f3ab64f7bb3e1193700c585f5
Parent Commit: de67e3c
Lines Changed: +123, -12
19 Modified Paths:
/intern/cycles/blender/addon/engine.py (+1, -0) (Diff)
/intern/cycles/blender/addon/operators.py (+1, -0) (Diff)
/intern/cycles/blender/addon/osl.py (+1, -0) (Diff)
/intern/cycles/blender/addon/presets.py (+1, -0) (Diff)
/intern/cycles/blender/addon/properties.py (+4, -5) (Diff)
/intern/cycles/blender/addon/ui.py (+1, -0) (Diff)
/intern/cycles/blender/addon/version_update.py (+1, -0) (Diff)
/intern/cycles/blender/addon/__init__.py (+1, -0) (Diff)
/release/scripts/modules/bpy_extras/object_utils.py (+2, -1) (Diff)
/release/scripts/startup/bl_operators/add_mesh_torus.py (+3, -1) (Diff)
/release/scripts/startup/bl_operators/anim.py (+1, -0) (Diff)
/release/scripts/startup/bl_operators/assets.py (+3, -0) (Diff)
/release/scripts/startup/bl_operators/console.py (+1, -0) (Diff)
/release/scripts/startup/bl_operators/constraint.py (+1, -0) (Diff)
/release/scripts/startup/bl_operators/node.py (+2, -1) (Diff)
/release/scripts/startup/bl_operators/wm.py (+6, -3) (Diff)
/release/scripts/startup/bl_operators/__init__.py (+1, -0) (Diff)
/source/blender/python/intern/bpy_props.c (+15, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+77, -0) (Diff)
/intern/cycles/blender/addon/operators.py (+1, -0) (Diff)
/intern/cycles/blender/addon/osl.py (+1, -0) (Diff)
/intern/cycles/blender/addon/presets.py (+1, -0) (Diff)
/intern/cycles/blender/addon/properties.py (+4, -5) (Diff)
/intern/cycles/blender/addon/ui.py (+1, -0) (Diff)
/intern/cycles/blender/addon/version_update.py (+1, -0) (Diff)
/intern/cycles/blender/addon/__init__.py (+1, -0) (Diff)
/release/scripts/modules/bpy_extras/object_utils.py (+2, -1) (Diff)
/release/scripts/startup/bl_operators/add_mesh_torus.py (+3, -1) (Diff)
/release/scripts/startup/bl_operators/anim.py (+1, -0) (Diff)
/release/scripts/startup/bl_operators/assets.py (+3, -0) (Diff)
/release/scripts/startup/bl_operators/console.py (+1, -0) (Diff)
/release/scripts/startup/bl_operators/constraint.py (+1, -0) (Diff)
/release/scripts/startup/bl_operators/node.py (+2, -1) (Diff)
/release/scripts/startup/bl_operators/wm.py (+6, -3) (Diff)
/release/scripts/startup/bl_operators/__init__.py (+1, -0) (Diff)
/source/blender/python/intern/bpy_props.c (+15, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+77, -0) (Diff)