From 35e7d2e2c6e8ebb8911e65fdfb6eee6cbabc6146 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 14 Mar 2012 08:56:32 +0000 Subject: 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. --- add_curve_torus_knots.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'add_curve_torus_knots.py') 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): -- cgit v1.2.3