diff options
author | Thomas Dinges <blender@dingto.org> | 2010-09-11 03:40:32 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2010-09-11 03:40:32 +0400 |
commit | 46a2c6aa73b15b83f08356288e521647f2c3dbce (patch) | |
tree | 1b924a41c142443874cb658ffe5545b8f09ec22b /add_mesh_3d_function_surface.py | |
parent | 135017985179ea98e618a4648ac5fee7f45026da (diff) |
Patch [#23759] more replace self.properties.foo --> self.foo for bf-extensions/trunk/py/scripts
by Filiciss Muhgue (filiciss). Thanks a lot!
Part 2: Extensions
Diffstat (limited to 'add_mesh_3d_function_surface.py')
-rw-r--r-- | add_mesh_3d_function_surface.py | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/add_mesh_3d_function_surface.py b/add_mesh_3d_function_surface.py index 0b1db521..dd45b826 100644 --- a/add_mesh_3d_function_surface.py +++ b/add_mesh_3d_function_surface.py @@ -338,12 +338,12 @@ class AddZFunctionSurface(bpy.types.Operator): align_matrix = Matrix() def execute(self, context): - edit = self.properties.edit - equation = self.properties.equation - div_x = self.properties.div_x - div_y = self.properties.div_y - size_x = self.properties.size_x - size_y = self.properties.size_y + edit = self.edit + equation = self.equation + div_x = self.div_x + div_y = self.div_y + size_x = self.size_x + size_y = self.size_y verts = [] faces = [] @@ -580,27 +580,26 @@ class AddXYZFunctionSurface(bpy.types.Operator): align_matrix = Matrix() def execute(self, context): - props = self.properties verts, faces = xyz_function_surface_faces( self, - props.x_eq, - props.y_eq, - props.z_eq, - props.range_u_min, - props.range_u_max, - props.range_u_step, - props.wrap_u, - props.range_v_min, - props.range_v_max, - props.range_v_step, - props.wrap_v) + self.x_eq, + self.y_eq, + self.z_eq, + self.range_u_min, + self.range_u_max, + self.range_u_step, + self.wrap_u, + self.range_v_min, + self.range_v_max, + self.range_v_step, + self.wrap_v) if not verts: return {'CANCELLED'} obj = create_mesh_object(context, verts, [], faces, - "XYZ Function", props.edit, self.align_matrix) + "XYZ Function", self.edit, self.align_matrix) return {'FINISHED'} |