Simplify @pyside_cache decorator

This fixes a compatibility issue with Python 3.9+, and at the same time
avoids a not-yet-quite-stable area of Blender's Python API.
This commit is contained in:
2021-02-23 11:56:38 +01:00
parent ce331c7b22
commit 3a2e9bc672
4 changed files with 25 additions and 32 deletions

View File

@@ -91,7 +91,7 @@ def scene_sample_count(scene) -> int:
return samples
@pyside_cache("manager")
@pyside_cache
def available_managers(self, context):
"""Returns the list of items used by a manager-selector EnumProperty."""