Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-10-08 09:43:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-08 09:45:50 +0300
commit79840abf6d58af1dab801f4e5718bca0df4ad1a9 (patch)
tree8ce850b3020810eb41583a5d8ee045d8b232480e /release/scripts/modules/bpy/__init__.py
parentfb20efae596565e4498fd0ea0ba310d977bab274 (diff)
PyAPI: use real modules for bpy.ops
Python 3.7x added support for module `__getattr__` & `__dir__`. Make use of this for operator access, previously these were module like classes. No functional changes, this is mostly to use a type which is expected, rather than faking the type with a class instance.
Diffstat (limited to 'release/scripts/modules/bpy/__init__.py')
-rw-r--r--release/scripts/modules/bpy/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/release/scripts/modules/bpy/__init__.py b/release/scripts/modules/bpy/__init__.py
index a80135a59e1..3fc5f54b77b 100644
--- a/release/scripts/modules/bpy/__init__.py
+++ b/release/scripts/modules/bpy/__init__.py
@@ -46,13 +46,11 @@ from _bpy import (
# python modules
from . import (
+ ops,
path,
utils,
)
-# fake operator module
-from .ops import ops_fake_module as ops
-
def main():
import sys