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_curve_torus_knots.py')
-rw-r--r--add_curve_torus_knots.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py
index bba2afd0..d4ea3914 100644
--- a/add_curve_torus_knots.py
+++ b/add_curve_torus_knots.py
@@ -37,7 +37,7 @@ bl_info = {
import bpy
from bpy.props import *
from math import sin, cos, pi
-from add_utils import *
+from bpy_extras.object_utils import AddObjectHelper, object_data_add
########################################################################
@@ -93,7 +93,7 @@ def create_torus_knot(self, context):
#curve_data.offset = self.geo_width # removed, somehow screws things up all of a sudden
curve_data.resolution_u = self.geo_res
- new_obj = add_object_data(context, curve_data, operator=self)
+ new_obj = object_data_add(context, curve_data, operator=self)
class torus_knot_plus(bpy.types.Operator, AddObjectHelper):