diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-01-05 17:27:33 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-01-05 17:46:41 +0300 |
commit | d68dca98ce6705dd69285692f3cdc1dbf2213c1d (patch) | |
tree | 293ad05d82522964478ddacb22e56f831194043c /render_povray | |
parent | b1cec919ec7d255c29d31bc21c91d98e0d118182 (diff) |
Cleanup: fix typos in source code
Contributed by luzpaz.
Differential Revision: https://developer.blender.org/D5801
Diffstat (limited to 'render_povray')
-rwxr-xr-x | render_povray/object_curve_topology.py | 8 | ||||
-rwxr-xr-x | render_povray/object_gui.py | 2 | ||||
-rwxr-xr-x | render_povray/object_mesh_topology.py | 4 | ||||
-rwxr-xr-x | render_povray/render.py | 4 | ||||
-rwxr-xr-x | render_povray/render_gui.py | 2 | ||||
-rwxr-xr-x | render_povray/update_files.py | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/render_povray/object_curve_topology.py b/render_povray/object_curve_topology.py index 876952e2..a51ef83e 100755 --- a/render_povray/object_curve_topology.py +++ b/render_povray/object_curve_topology.py @@ -32,13 +32,13 @@ from .shading import write_object_material_interior def export_curves(file, ob, string_strip_hyphen, global_matrix, tab_write): """write all curves based POV primitives to exported file """ - # name_orig = "OB" + ob.name # XXX Unused, check instanciation + # name_orig = "OB" + ob.name # XXX Unused, check instantiation dataname_orig = "DATA" + ob.data.name - # name = string_strip_hyphen(bpy.path.clean_name(name_orig)) # XXX Unused, check instanciation + # name = string_strip_hyphen(bpy.path.clean_name(name_orig)) # XXX Unused, check instantiation dataname = string_strip_hyphen(bpy.path.clean_name(dataname_orig)) - # matrix = global_matrix @ ob.matrix_world # XXX Unused, check instanciation + # matrix = global_matrix @ ob.matrix_world # XXX Unused, check instantiation bezier_sweep = False if ob.pov.curveshape == 'sphere_sweep': # TODO: Check radius ; shorten lines, may use tab_write() ? > fstrings since py 2.9 @@ -962,7 +962,7 @@ def export_curves(file, ob, string_strip_hyphen, global_matrix, tab_write): if ob.pov.curveshape in {'birail'}: splines = '%s1,%s2,%s3,%s4' % (dataname, dataname, dataname, dataname) tab_write('object {Coons(%s, %s, %s, "")\n' % (splines, ob.pov.res_u, ob.pov.res_v)) - # pov_mat_name = "Default_texture" # XXX! Unused, check instanciation + # pov_mat_name = "Default_texture" # XXX! Unused, check instantiation if ob.active_material: # pov_mat_name = string_strip_hyphen(bpy.path.clean_name(ob.active_material.name)) try: diff --git a/render_povray/object_gui.py b/render_povray/object_gui.py index aebaa311..fa33fc65 100755 --- a/render_povray/object_gui.py +++ b/render_povray/object_gui.py @@ -605,7 +605,7 @@ def check_add_mesh_extra_objects(): """Test if Add mesh extra objects addon is activated This addon is currently used to generate the proxy for POV parametric - surface which is almost the same priciple as its Math xyz surface + surface which is almost the same principle as its Math xyz surface """ if "add_mesh_extra_objects" in bpy.context.preferences.addons.keys(): return True diff --git a/render_povray/object_mesh_topology.py b/render_povray/object_mesh_topology.py index 1599d6d1..cd98a6f4 100755 --- a/render_povray/object_mesh_topology.py +++ b/render_povray/object_mesh_topology.py @@ -32,7 +32,7 @@ from .scenography import export_smoke def matrix_as_pov_string(matrix): - """Translate some tranform matrix from Blender UI + """Translate some transform matrix from Blender UI to POV syntax and return that string """ matrix_string = ( "matrix <%.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f>\n" @@ -720,7 +720,7 @@ def export_meshes( if not ob.is_instancer: # except duplis which should be instances groups for now but all duplis later if ob.type == 'EMPTY': - # XXX Should we only write this once and instanciate the same for every + # XXX Should we only write this once and instantiate the same for every # empty in the final matrix writing, or even no marix and just a comment # with empty object transforms ? tab_write("\n//dummy sphere to represent Empty location\n") diff --git a/render_povray/render.py b/render_povray/render.py index 76bdf7c4..25e0697c 100755 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -18,7 +18,7 @@ # <pep8 compliant> -"""Wirte the POV file using this file's functions and some from other modules then render it.""" +"""Write the POV file using this file's functions and some from other modules then render it.""" import bpy import subprocess @@ -285,7 +285,7 @@ def write_pov(filename, scene=None, info_callback=None): return name def write_matrix(matrix): - """Translate some tranform matrix from Blender UI + """Translate some transform matrix from Blender UI to POV syntax and write to exported file """ tab_write( "matrix <%.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f, %.6f>\n" diff --git a/render_povray/render_gui.py b/render_povray/render_gui.py index ff5e20ec..e527511f 100755 --- a/render_povray/render_gui.py +++ b/render_povray/render_gui.py @@ -96,7 +96,7 @@ class RenderButtonsPanel: class RENDER_PT_POV_export_settings(RenderButtonsPanel, Panel): - """Use this class to define pov ini settingss buttons.""" + """Use this class to define pov ini settings buttons.""" bl_options = {'DEFAULT_CLOSED'} bl_label = "Auto Start" diff --git a/render_povray/update_files.py b/render_povray/update_files.py index f9696f8f..0082ff83 100755 --- a/render_povray/update_files.py +++ b/render_povray/update_files.py @@ -37,7 +37,7 @@ from bpy.props import ( # *update this file to just cover 2.79 to 3.xx and ui it from a Blender internal to pov menu # *as well as update from older pov > switch to QMC when pov 3.8 is out ? # *filter if possible files built in pre 2.79 versions. tell user their file is too old and may -# be salvaged from older vesion of this operator from within latest stable blender 2.79 version. +# be salvaged from older version of this operator from within latest stable blender 2.79 version. # else if bpy.app.version[0] == 2 and bpy.app.version[1] <= 92 and and bpy.app.version[1] >= 79: # warn users to update blender to 3.xx for creating their newer files then try to salvage # using this script |