diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-23 05:57:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-23 05:58:49 +0300 |
commit | 0287b394680441b6836c43b8f01512c1c8e37800 (patch) | |
tree | b166e74e75a42185a00bd743a23388b0131c4733 | |
parent | ecb3362a244f082d58c6b73a044d661e4b80f320 (diff) |
Py API: Remove deprecated callback_add
-rw-r--r-- | release/scripts/modules/bpy_types.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 9b0352b7887..92dbd2dbd0e 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -781,24 +781,6 @@ class Menu(StructRNA, _GenericUI, metaclass=RNAMeta): layout.menu(cls.__name__, icon='COLLAPSEMENU') -class Region(StructRNA): - __slots__ = () - - def callback_add(self, cb, args, draw_mode): - """ - Append a draw function to this region, - deprecated, instead use bpy.types.SpaceView3D.draw_handler_add - """ - for area in self.id_data.areas: - for region in area.regions: - if region == self: - spacetype = type(area.spaces[0]) - return spacetype.draw_handler_add(cb, args, self.type, - draw_mode) - - return None - - class NodeTree(bpy_types.ID, metaclass=RNAMetaPropGroup): __slots__ = () |