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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'add_mesh_3d_function_surface.py')
-rw-r--r--add_mesh_3d_function_surface.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/add_mesh_3d_function_surface.py b/add_mesh_3d_function_surface.py
index 5f5e74b5..1e15ddcc 100644
--- a/add_mesh_3d_function_surface.py
+++ b/add_mesh_3d_function_surface.py
@@ -497,7 +497,6 @@ class AddXYZFunctionSurface(bpy.types.Operator):
################################
-import space_info
# Define "3D Function Surface" menu
@@ -517,16 +516,18 @@ def register():
bpy.utils.register_module(__name__)
# Add menus to the "Add Mesh" menu
- space_info.INFO_MT_mesh_add.append(menu_func_z)
- space_info.INFO_MT_mesh_add.append(menu_func_xyz)
+ INFO_MT_mesh_add = bpy.types.INFO_MT_mesh_add
+ INFO_MT_mesh_add.append(menu_func_z)
+ INFO_MT_mesh_add.append(menu_func_xyz)
def unregister():
bpy.utils.unregister_module(__name__)
# Remove menus from the "Add Mesh" menu.
- space_info.INFO_MT_mesh_add.remove(menu_func_z)
- space_info.INFO_MT_mesh_add.remove(menu_func_xyz)
+ INFO_MT_mesh_add = bpy.types.INFO_MT_mesh_add
+ INFO_MT_mesh_add.remove(menu_func_z)
+ INFO_MT_mesh_add.remove(menu_func_xyz)
if __name__ == "__main__":
- register()
+ register() \ No newline at end of file