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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-03-14 12:56:32 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-03-14 12:56:32 +0400
commit35e7d2e2c6e8ebb8911e65fdfb6eee6cbabc6146 (patch)
treed502ed00e3ccdea7265e848abea853509688ffb5 /add_curve_torus_knots.py
parentff5c86fcc343ef8bfa208d4594712ce53fac6b9e (diff)
De-duplicate functions needed for object add operators:
Remove module add_utils.py which fully duplicates functions from trunk's object_utils.py module and switch all dependent addons to use module from trunk.
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):