diff options
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_torusknot.py')
-rw-r--r-- | add_mesh_extra_objects/add_mesh_torusknot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_extra_objects/add_mesh_torusknot.py b/add_mesh_extra_objects/add_mesh_torusknot.py index cf570433..73a0b80f 100644 --- a/add_mesh_extra_objects/add_mesh_torusknot.py +++ b/add_mesh_extra_objects/add_mesh_torusknot.py @@ -122,7 +122,7 @@ class AddTorusKnot(bpy.types.Operator, object_utils.AddObjectHelper): default=1, min=1, max=3 ) - + def draw(self, context): layout = self.layout @@ -162,7 +162,7 @@ class AddTorusKnot(bpy.types.Operator, object_utils.AddObjectHelper): obj.data["change"] = False for prm in TorusKnotParameters(): obj.data[prm] = getattr(self, prm) - + if bpy.context.mode == "EDIT_MESH": active_object = context.active_object name_active_object = active_object.name |