diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-12-31 01:14:32 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-12-31 01:14:32 +0300 |
commit | b00cddeb66f2b9f51cad15ed597a6ca975bd31dd (patch) | |
tree | bd686691ecde5cd24abd2330dea086e275d07635 /release/scripts | |
parent | 3702998fec6d237eb567bb8353ac93c8d4a68d4c (diff) |
Macro registration using the normal rna registration methods (like operators).
bpy.types.register(MacroClass)
instead of
bpy.ops.add_macro(MacroClass)
The rest is unchanged.
Also remove some now unused code for the old registration methods (there's still some remaining).
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/bpy/ops.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/release/scripts/modules/bpy/ops.py b/release/scripts/modules/bpy/ops.py index 268189b2db4..ba5eeff7a0e 100644 --- a/release/scripts/modules/bpy/ops.py +++ b/release/scripts/modules/bpy/ops.py @@ -23,7 +23,6 @@ from _bpy import ops as ops_module # op_add = ops_module.add op_remove = ops_module.remove -op_add_macro = ops_module.add_macro op_dir = ops_module.dir op_call = ops_module.call op_as_string = ops_module.as_string @@ -57,12 +56,6 @@ class bpy_ops(object): raise AttributeError(module) return bpy_ops_submodule(module) - def add(self, pyop): - op_add(pyop) - - def add_macro(self, pyop): - op_add_macro(pyop) - def remove(self, pyop): op_remove(pyop) |