From d7d3233715503ecc15b8dd1973f7e73257e2cbda Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 19 Oct 2018 17:59:58 +0200 Subject: Spelling fixes in comments and descriptions, patch by luzpaz. Differential Revision: https://developer.blender.org/D3746 --- io_scene_x3d/import_x3d.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'io_scene_x3d') diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 3416bf22..83dcc83d 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -54,7 +54,7 @@ def imageConvertCompat(path): # notes # transform are relative -# order dosnt matter for loc/size/rot +# order doesn't matter for loc/size/rot # right handed rotation # angles are in radians # rotation first defines axis then amount in radians @@ -105,7 +105,7 @@ def vrmlFormat(data): """ Keep this as a valid vrml file, but format in a way we can predict. """ - # Strip all commends - # not in strings - warning multiline strings are ignored. + # Strip all comments - # not in strings - warning multiline strings are ignored. def strip_comment(l): #l = ' '.join(l.split()) l = l.strip() @@ -138,7 +138,7 @@ def vrmlFormat(data): data = '\n'.join([strip_comment(l) for l in data.split('\n')]) # remove all whitespace - EXTRACT_STRINGS = True # only needed when strings or filesnames containe ,[]{} chars :/ + EXTRACT_STRINGS = True # only needed when strings or filename contains ,[]{} chars :/ if EXTRACT_STRINGS: @@ -573,7 +573,7 @@ class vrmlNode(object): # Only add this in a very special case # where the parent of this object is not the real parent # - In this case we have added the proto as a child to a node instancing it. - # This is a bit arbitary, but its how Proto's are done with this importer. + # This is a bit arbitrary, but its how Proto's are done with this importer. if child.getProtoName() is None and child.getExternprotoName() is None: child.getSerialized(results, ancestry) else: @@ -621,7 +621,7 @@ class vrmlNode(object): # proto settings are stored in "self.proto_node" if node.proto_node: - # Get the default value from the proto, this can be overwridden by the proto instace + # Get the default value from the proto, this can be overwritten by the proto instance # 'field SFColor legColor .8 .4 .7' if AS_CHILD: for child in node.proto_node.children: @@ -808,12 +808,12 @@ class vrmlNode(object): child_array = self_real.getFieldName(field, ancestry, True, SPLIT_COMMAS=True) - #if type(child_array)==list: # happens occasionaly + #if type(child_array)==list: # happens occasionally # array_data = child_array if child_array is None: # For x3d, should work ok with vrml too - # for x3d arrays are fields, vrml they are nodes, annoying but not tooo bad. + # for x3d arrays are fields, vrml they are nodes, annoying but not too bad. data_split = self.getFieldName(field, ancestry, SPLIT_COMMAS=True) if not data_split: return [] @@ -1668,7 +1668,7 @@ def importMesh_ReadVertices(bpymesh, geom, ancestry): # of vertices matches the source file. # Relies upon texture coordinates in the X3D node; if a coordinate generation # algorithm for a geometry is in the spec (e. g. for ElevationGrid), it needs -# to be implemeted by the geometry handler. +# to be implemented by the geometry handler. # # Texture transform is applied in ProcessObject. def importMesh_ApplyTextureToTessfaces(bpymesh, geom, ancestry, bpyima): @@ -2258,7 +2258,7 @@ def importMesh_Extrusion(geom, ancestry, bpyima): (s + 1) * nc + c), ccw) for s in range(ns - 1) for c in range(ncf)] if spine_closed: - # The faces between the last and the first spine poins + # The faces between the last and the first spine points b = (ns - 1) * nc faces += [flip(( b + c, @@ -2388,7 +2388,7 @@ def importMesh_IndexedLineSet(geom, ancestry, _): lines.append(line) # vcolor = geom.getChildByName('color') - # blender dosnt have per vertex color + # blender doesn't have per vertex color bpycurve = bpy.data.curves.new('IndexedCurve', 'CURVE') bpycurve.dimensions = '3D' @@ -2414,7 +2414,7 @@ def importMesh_PointSet(geom, ancestry, _): points = [] # vcolor = geom.getChildByName('color') - # blender dosnt have per vertex color + # blender doesn't have per vertex color bpymesh = bpy.data.meshes.new("PointSet") bpymesh.vertices.add(len(points)) @@ -2679,7 +2679,7 @@ def appearance_CreateMaterial(vrmlname, mat, ancestry, is_vcol): ancestry) bpymat.diffuse_color = diff_color - # NOTE - blender dosnt support emmisive color + # NOTE - blender doesn't support emmisive color # Store in mirror color and approximate with emit. emit = mat.getFieldAsFloatTuple('emissiveColor', [0.0, 0.0, 0.0], ancestry) bpymat.mirror_color = emit @@ -2893,7 +2893,7 @@ def importShape_LoadAppearance(vrmlname, appr, ancestry, node, is_vcol): It's probably an abuse of Blender of some level. So here's the caching structure: - For USE on apprearance, we store the material object + For USE on appearance, we store the material object in the appearance node. For USE on texture, we store the image object in the tex node. @@ -3376,7 +3376,7 @@ def translateTimeSensor(node, action, ancestry): loop = node.getFieldAsBool('loop', False, ancestry) time_cu.append((1 + startTime, 0.0)) - time_cu.append((1 + stopTime, 1.0 / 10.0)) # anoying, the UI uses /10 + time_cu.append((1 + stopTime, 1.0 / 10.0)) # annoying, the UI uses /10 if loop: time_cu.extend = Blender.IpoCurve.ExtendTypes.CYCLIC # or - EXTRAP, CYCLIC_EXTRAP, CONST, -- cgit v1.2.3