soc-2008-mxcurioni: FRS_glBlendEquation files

This commit is contained in:
Maxime Curioni
2008-09-28 18:43:51 +00:00
parent 5812c494a5
commit bb8477ec57
67 changed files with 18788 additions and 17 deletions

View File

@@ -68,11 +68,7 @@ def add_mesh_simple(name, verts, edges, faces):
else:
# Mesh with no data, unlikely
me.edges.extend(edges)
me.faces.extend(faces)
if is_editmode or Blender.Get('add_editmode'):
EditMode(1)
me.faces.extend(faces)
else:
# Object mode add new
@@ -95,9 +91,14 @@ def add_mesh_simple(name, verts, edges, faces):
ob_act.setMatrix(mat)
ob_act.loc = cursor
if is_editmode or Blender.Get('add_editmode'):
EditMode(1)
me.calcNormals()
if is_editmode or Blender.Get('add_editmode'):
EditMode(1)
def write_mesh_script(filepath, me):
@@ -112,7 +113,7 @@ def write_mesh_script(filepath, me):
file.write('#!BPY\n')
file.write('"""\n')
file.write('Name: \'%s\'\n' % name)
file.write('Blender: 243\n')
file.write('Blender: 245\n')
file.write('Group: \'AddMesh\'\n')
file.write('"""\n\n')
file.write('import BPyAddMesh\n')