Fix T51658: Exporting and Importing OBJ Files isn't working.
Silly mistake in recent addition of Cycles basic material import...
This commit is contained in:
parent
1786f9948c
commit
84baf76f48
Notes:
blender-bot
2023-02-14 19:38:45 +01:00
Referenced by issue #51658, Exporting and Importing OBJ Files isn't working.
|
@ -21,8 +21,8 @@
|
|||
bl_info = {
|
||||
"name": "Wavefront OBJ format",
|
||||
"author": "Campbell Barton, Bastien Montagne",
|
||||
"version": (2, 3, 4),
|
||||
"blender": (2, 77, 0),
|
||||
"version": (2, 3, 5),
|
||||
"blender": (2, 78, 0),
|
||||
"location": "File > Import-Export",
|
||||
"description": "Import-Export OBJ, Import OBJ mesh, UV's, materials and textures",
|
||||
"warning": "",
|
||||
|
|
|
@ -315,16 +315,16 @@ def create_materials(filepath, relpath,
|
|||
|
||||
if do_highlight:
|
||||
if use_cycles:
|
||||
context_mat_wrap.hardness_value_set = 1.0
|
||||
context_mat_wrap.hardness_value_set(1.0)
|
||||
# FIXME, how else to use this?
|
||||
context_material.specular_intensity = 1.0
|
||||
else:
|
||||
if use_cycles:
|
||||
context_mat_wrap.hardness_value_set = 0.0
|
||||
context_mat_wrap.hardness_value_set(0.0)
|
||||
|
||||
if do_reflection:
|
||||
if use_cycles:
|
||||
context_mat_wrap.reflect_factor_set = 1.0
|
||||
context_mat_wrap.reflect_factor_set(1.0)
|
||||
context_material.raytrace_mirror.use = True
|
||||
context_material.raytrace_mirror.reflect_factor = 1.0
|
||||
|
||||
|
|
Loading…
Reference in New Issue