forked from bartvdbraak/blender
PyAPI: disallow assigning members to 'bpy.ops'
This commit is contained in:
parent
9f61350a05
commit
f0f1c7995b
@ -38,10 +38,10 @@ __all__ = (
|
||||
from _bpy import types, props, app, data, context
|
||||
|
||||
# python modules
|
||||
from . import utils, path, ops
|
||||
from . import utils, path
|
||||
|
||||
# fake operator module
|
||||
ops = ops.ops_fake_module
|
||||
from .ops import ops_fake_module as ops
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -36,6 +36,7 @@ class BPyOps:
|
||||
|
||||
bpy.ops
|
||||
"""
|
||||
__slots__ = ()
|
||||
|
||||
def __getattr__(self, module):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user