Fix #20641, #20645. Someone forgot to update scripts ;)

This commit is contained in:
2010-01-12 11:21:42 +00:00
parent f6c79c553b
commit b011664284
2 changed files with 2 additions and 4 deletions

View File

@@ -586,8 +586,7 @@ def process_next_chunk(file, previous_chunk, importedObjects, IMAGE_SEARCH):
# print("read material")
#print 'elif (new_chunk.ID == MATERIAL):'
contextMaterial = bpy.data.add_material('Material')
# contextMaterial = bpy.data.materials.new('Material')
contextMaterial = bpy.data.materials.new('Material')
elif (new_chunk.ID == MAT_NAME):
#print 'elif (new_chunk.ID == MAT_NAME):'

View File

@@ -440,8 +440,7 @@ def create_materials(filepath, material_libs, unique_materials, unique_material_
#Create new materials
for name in unique_materials: # .keys()
if name != None:
unique_materials[name]= bpy.data.add_material(name)
# unique_materials[name]= bpy.data.materials.new(name)
unique_materials[name]= bpy.data.materials.new(name)
unique_material_images[name]= None, False # assign None to all material images to start with, add to later.
unique_materials[None]= None