diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-29 05:47:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-29 05:47:19 +0300 |
commit | b85840836438856c0a296bb8281aa459e076d129 (patch) | |
tree | 124dc56bbdcd1b8344dd10f707378f9bfea87e0b /add_mesh_geodesic_domes | |
parent | 711829f2cd8b247bf0e17380684e3718dc202e65 (diff) |
Cleanup: trailing space
Diffstat (limited to 'add_mesh_geodesic_domes')
-rw-r--r-- | add_mesh_geodesic_domes/__init__.py | 6 | ||||
-rw-r--r-- | add_mesh_geodesic_domes/third_domes_panel_271.py | 20 |
2 files changed, 13 insertions, 13 deletions
diff --git a/add_mesh_geodesic_domes/__init__.py b/add_mesh_geodesic_domes/__init__.py index bf87fb2a..ae634dfb 100644 --- a/add_mesh_geodesic_domes/__init__.py +++ b/add_mesh_geodesic_domes/__init__.py @@ -15,7 +15,7 @@ # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # ##### END GPL LICENSE BLOCK ##### -# Contributed to by PKHG, Meta Androcto, Noctumsolis, Lijenstina, +# Contributed to by PKHG, Meta Androcto, Noctumsolis, Lijenstina, # Spivak Vladimir (cwolf3d) # Origunally an addon by Andy Houston @@ -50,10 +50,10 @@ import bpy def Geodesic_contex_menu(self, context): bl_label = 'Change' - + obj = context.object layout = self.layout - + if 'GeodesicDome' in obj.keys(): props = layout.operator("mesh.generate_geodesic_dome", text="Change Geodesic Dome") props.change = True diff --git a/add_mesh_geodesic_domes/third_domes_panel_271.py b/add_mesh_geodesic_domes/third_domes_panel_271.py index cbef1275..25835c7f 100644 --- a/add_mesh_geodesic_domes/third_domes_panel_271.py +++ b/add_mesh_geodesic_domes/third_domes_panel_271.py @@ -63,7 +63,7 @@ class GenerateGeodesicDome(Operator): bl_idname = "mesh.generate_geodesic_dome" bl_description = "Create Geodesic Object Types" bl_options = {'REGISTER', 'UNDO', 'PRESET'} - + # align_matrix for the invoke align_matrix : Matrix() @@ -74,14 +74,14 @@ class GenerateGeodesicDome(Operator): #### change properties name : StringProperty(name = "Name", description = "Name") - + change : BoolProperty(name = "Change", default = False, description = "change Gear") delete : StringProperty(name = "Delete", description = "Delete Gear") - + location : FloatVectorProperty(name = "", description = "Location", default = (0.0, 0.0, 0.0), @@ -1154,10 +1154,10 @@ class GenerateGeodesicDome(Operator): multi_label(help_text, box, text_width) def execute(self, context): - + if self.change: ObjectDelete(self, context, self.delete) - + global last_generated_object, last_imported_mesh, basegeodesic, imported_hubmesh_to_use, error_message # default superformparam = [3, 10, 10, 10, 1, 1, 4, 10, 10, 10, 1, 1, 0, 0, 0.0, 0.0, 0, 0]] superformparam = [self.um, self.un1, self.un2, self.un3, self.ua, @@ -1371,14 +1371,14 @@ class GenerateGeodesicDome(Operator): obj = bpy.data.objects[-1] obj.name = self.fmeshname #obj.location = (0, 0, 0) - - + + obj = context.active_object self.align_matrix = align_matrix(context, self.location) - + obj.matrix_world = self.align_matrix # apply matrix obj.rotation_euler = self.rotation_euler - + obj["GeodesicDome"] = True obj["change"] = False obj["delete"] = "" @@ -1568,7 +1568,7 @@ class GenerateGeodesicDome(Operator): bpy.context.scene.cursor.location = self.startlocation else: self.startlocation = bpy.context.scene.cursor.location - + self.align_matrix = align_matrix(context, self.startlocation) self.execute(context) |