diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 21:13:26 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 21:13:26 +0300 |
commit | ed161459d14a31fd237cd1f65a7070113ae3300f (patch) | |
tree | 375a2763bf4fa7135aa4e64c92fccaaa335a4034 /io_scene_x3d | |
parent | 50c493fb22869e0e08936c4b7a44624887b1de58 (diff) |
Fix typos in source comments and descriptions
Patch contributed by luzpaz.
Differential Revision: https://developer.blender.org/D5800
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/import_x3d.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 92257211..5a1a4b32 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -83,7 +83,7 @@ def vrml_split_fields(value): if (field_context_len > 2) and (field_context[-2] in {'DEF', 'USE'}): field_context.append(v) elif (not iskey(field_context[-1])) or ((field_context_len == 3 and field_context[1] == 'IS')): - # this IS a key but the previous value was not a key, ot it was a defined field. + # this IS a key but the previous value was not a key, or it was a defined field. field_list.append(field_context) field_context = [v] else: @@ -1053,7 +1053,7 @@ class vrmlNode(object): # if self.getExternprotoName(): if self.getExternprotoName(): - if not extern_key: # if none is spesified - use the name + if not extern_key: # if none is specified - use the name extern_key = self.getSpec() if extern_key: @@ -2463,7 +2463,7 @@ def importMesh_Sphere(geom, ancestry): else: nr = ns = GLOBALS['CIRCLE_DETAIL'] # used as both ring count and segment count - lau = pi / nr # Unit angle of latitude (rings) for the given tesselation + lau = pi / nr # Unit angle of latitude (rings) for the given tessellation lou = 2 * pi / ns # Unit angle of longitude (segments) bpymesh = bpy.data.meshes.new(name="Sphere") @@ -2997,7 +2997,7 @@ def appearance_LoadPixelTexture(pixelTexture, ancestry): elif plane_count == 1: # Intensity - does Blender even support that? bpyima.pixels = [(cco & 0xff) / 255 for pixel in pixels for cco in (pixel, pixel, pixel, 255)] - elif plane_count == 2: # Intensity/aplha + elif plane_count == 2: # Intensity/alpha bpyima.pixels = [(cco & 0xff) / 255 for pixel in pixels for cco in (pixel >> 8, pixel >> 8, pixel >> 8, pixel)] @@ -3431,7 +3431,7 @@ def importRoute(node, ancestry): # for getting definitions defDict = node.getDefDict() """ - Handles routing nodes to eachother + Handles routing nodes to each other ROUTE vpPI.value_changed TO champFly001.set_position ROUTE vpOI.value_changed TO champFly001.set_orientation |