~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to release/scripts/addons/add_curve_torus_knots.py

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-04-28 12:11:12 UTC
  • mto: (14.1.6 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: package-import@ubuntu.com-20120428121112-2zi0vp8b6vejda8i
Tags: upstream-2.63
ImportĀ upstreamĀ versionĀ 2.63

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
import bpy
38
38
from bpy.props import *
39
39
from math import sin, cos, pi
40
 
from add_utils import *
 
40
from bpy_extras.object_utils import AddObjectHelper, object_data_add
41
41
 
42
42
    
43
43
########################################################################
93
93
        #curve_data.offset = self.geo_width # removed, somehow screws things up all of a sudden
94
94
        curve_data.resolution_u = self.geo_res
95
95
    
96
 
    new_obj = add_object_data(context, curve_data, operator=self)
 
96
    new_obj = object_data_add(context, curve_data, operator=self)
97
97
 
98
98
 
99
99
class torus_knot_plus(bpy.types.Operator, AddObjectHelper):