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:
authorSpivak Vladimir (cwolf3d) <cwolf3d@gmail.com>2019-11-13 22:37:30 +0300
committerSpivak Vladimir (cwolf3d) <cwolf3d@gmail.com>2019-11-13 22:37:30 +0300
commitd803b6c6f50ceb1cdaddac5011a257a7e75ba7e4 (patch)
tree3940a031ca4655e02a0a7da76f207e9e441b04ab /add_mesh_extra_objects
parent30074c463042a817ee48b6fa41d25586a780bf27 (diff)
Fix T71543: XYZ Function Surface problem
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/add_mesh_3d_function_surface.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/add_mesh_extra_objects/add_mesh_3d_function_surface.py b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
index eb2b53c1..b9842615 100644
--- a/add_mesh_extra_objects/add_mesh_3d_function_surface.py
+++ b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
@@ -497,6 +497,16 @@ class AddXYZFunctionSurface(Operator):
description="Equation for h=F(u,v). Also available: n, a, b, c",
default="0"
)
+ show_wire : BoolProperty(
+ name="Show wireframe",
+ default=True,
+ description="Add the object’s wireframe over solid drawing"
+ )
+ edit_mode : BoolProperty(
+ name="Show in edit mode",
+ default=True,
+ description="Show in edit mode"
+ )
def execute(self, context):
for n in range(0, self.n_eq):
@@ -526,5 +536,13 @@ class AddXYZFunctionSurface(Operator):
return {'CANCELLED'}
obj = create_mesh_object(context, verts, [], faces, "XYZ Function")
+
+ if self.show_wire:
+ obj.show_wire = True
+
+ if self.edit_mode:
+ bpy.ops.object.mode_set(mode = 'EDIT')
+ else:
+ bpy.ops.object.mode_set(mode = 'OBJECT')
return {'FINISHED'}