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:
authorVladimir Spivak <cwolf3d@gmail.com>2022-02-20 14:09:46 +0300
committerVladimir Spivak <cwolf3d@gmail.com>2022-02-20 14:10:08 +0300
commita455b71f163fde58dc19629a4e7fad14cab3985c (patch)
tree52c6ca0dd3ddfea1719691b05b3d9fbf074eeddf
parentb0274e50da58bc1f0086794a16029ec6e2e9b927 (diff)
Fix T95886: Add Mathfunction / XYZ Math Surface
-rw-r--r--add_mesh_extra_objects/add_mesh_3d_function_surface.py6
1 files changed, 4 insertions, 2 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 b7025bd4..acd272b4 100644
--- a/add_mesh_extra_objects/add_mesh_3d_function_surface.py
+++ b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
@@ -546,8 +546,10 @@ class AddXYZFunctionSurface(Operator):
obj = create_mesh_object(context, verts, [], faces, "XYZ Function")
- if self.show_wire:
- obj.show_wire = True
+ if self.show_wire:
+ context.active_object.show_wire = True
+ else:
+ context.active_object.show_wire = False
if self.edit_mode:
bpy.ops.object.mode_set(mode = 'EDIT')