Campbell Barton
e125305af4
Fix T86332: Error using lambda in annotations in Python 3.10
...
Callbacks used in `bpy.props` didn't hold a references to the functions
they used.
While this has been the case since early 2.5x it didn't cause any
problems as long as the class held a reference.
With Python 3.10 or when using `from __future__ import annotations`,
the annotations are no longer owned by the class once evaluated.
Resolve this by holding a reference in the module, which now supports
traverse & clear callbacks so the objects are visible to Python's
garbage collector.
Also refactor storage of Python data, moving from an array into a struct.
2021-03-16 15:17:45 +11:00
..
2021-03-04 15:46:07 +11:00
2020-08-07 09:50:34 +02:00
2020-09-30 20:11:06 +10:00
2020-08-07 09:50:34 +02:00
2021-03-04 15:46:07 +11:00
2020-08-07 09:50:34 +02:00
2021-02-05 16:23:34 +11:00
2020-08-07 09:50:34 +02:00
2020-08-20 16:10:13 +10:00
2020-08-07 09:50:34 +02:00
2021-03-04 15:46:07 +11:00
2020-08-07 09:50:34 +02:00
2021-03-04 15:46:07 +11:00
2020-08-07 09:50:34 +02:00
2021-03-04 15:46:07 +11:00
2020-08-07 09:50:34 +02:00
2021-03-04 15:46:07 +11:00
2020-08-07 09:50:34 +02:00
2021-03-04 15:46:07 +11:00
2020-08-07 09:50:34 +02:00
2020-08-20 16:10:13 +10:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2021-03-04 15:46:07 +11:00
2020-08-07 09:50:34 +02:00
2021-03-04 15:46:07 +11:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2021-02-12 08:08:15 +11:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2020-04-03 18:25:52 +02:00
2020-08-07 09:50:34 +02:00
2021-02-05 16:23:34 +11:00
2020-08-17 18:53:21 +10:00
2021-03-16 15:17:45 +11:00
2020-02-20 15:40:05 +11:00
2020-08-07 09:50:34 +02:00
2021-03-12 16:13:36 +11:00
2021-03-04 23:13:07 +11:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2021-03-15 14:48:17 +11:00
2020-08-07 09:50:34 +02:00
2021-03-15 14:48:17 +11:00
2020-08-07 09:50:34 +02:00
2019-04-17 06:21:24 +02:00
2020-08-07 09:50:34 +02:00
2021-03-16 15:17:45 +11:00
2021-03-16 15:17:45 +11:00
2020-10-15 19:00:17 +11:00
2020-08-07 09:50:34 +02:00
2020-08-20 16:10:13 +10:00
2021-02-24 16:23:18 -03:00
2020-09-04 21:04:16 +02:00
2021-03-12 16:13:36 +11:00
2021-03-09 01:01:31 +11:00
2020-08-20 16:10:13 +10:00
2020-08-07 09:50:34 +02:00
2020-10-15 19:00:17 +11:00
2020-09-09 11:10:38 +02:00
2021-02-25 17:48:54 +01:00
2020-08-07 09:50:34 +02:00
2021-03-09 01:01:31 +11:00
2020-08-07 09:50:34 +02:00
2021-01-05 23:04:51 +11:00
2020-09-02 15:58:44 +10:00
2021-03-12 16:13:36 +11:00
2021-02-19 22:12:41 +11:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2020-09-29 15:07:41 -04:00
2020-08-07 09:50:34 +02:00
2020-11-06 12:32:54 +11:00
2020-08-07 09:50:34 +02:00
2021-03-09 01:01:31 +11:00
2020-11-02 19:33:32 +11:00
2021-03-09 01:01:31 +11:00
2019-05-01 11:13:14 +10:00