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:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2017-06-17 21:17:44 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2017-06-17 21:17:44 +0300
commit6fd569bc7404ad9d7a18f1b90f46075264a6c0cc (patch)
tree7d9a688c793c328cdcd2b24b8b7c49704cb46259 /render_povray/__init__.py
parente813b903c340fdc1edb2d51c4c5c492a55f367bf (diff)
*Removed automatic activation of Add Mesh: extra objects used for 3d function surface (exported as pov parametric object)
*Replaced by a message and easy menu for user to activate it himself to avoid conflicts with other scripts when deactivating POV would also deactivate extras.
Diffstat (limited to 'render_povray/__init__.py')
-rw-r--r--render_povray/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index b95103b9..a04977a4 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -64,7 +64,6 @@ else:
update_files,
)
-
def string_strip_hyphen(name):
return name.replace("-", "")
@@ -2176,8 +2175,9 @@ def register():
bpy.types.INFO_MT_add.prepend(ui.menu_func_add)
bpy.types.INFO_MT_file_import.append(ui.menu_func_import)
bpy.types.TEXT_MT_templates.append(ui.menu_func_templates)
- #used for parametric objects:
- addon_utils.enable("add_mesh_extra_objects", default_set=False, persistent=True)
+ # was used for parametric objects but made the other addon unreachable on
+ # unregister for other tools to use created a user action call instead
+ #addon_utils.enable("add_mesh_extra_objects", default_set=False, persistent=True)
#bpy.types.TEXTURE_PT_context_texture.prepend(TEXTURE_PT_povray_type)
@@ -2203,7 +2203,7 @@ def unregister():
bpy.types.NODE_HT_header.remove(ui.menu_func_nodes)
#bpy.types.TEXTURE_PT_context_texture.remove(TEXTURE_PT_povray_type)
- addon_utils.disable("add_mesh_extra_objects", default_set=False)
+ #addon_utils.disable("add_mesh_extra_objects", default_set=False)
bpy.types.TEXT_MT_templates.remove(ui.menu_func_templates)
bpy.types.INFO_MT_file_import.remove(ui.menu_func_import)
bpy.types.INFO_MT_add.remove(ui.menu_func_add)