File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
blender/LilySurfaceScrapper Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def createMaterial(self):
59
59
continue
60
60
texture_node = nodes .new (type = "ShaderNodeTexImage" )
61
61
texture_node .image = getCyclesImage (img )
62
- texture_node .color_space = 'COLOR ' if map_name == 'baseColor' else 'NONE '
62
+ texture_node .image . colorspace_settings . name = 'sRGB ' if map_name == 'baseColor' else 'Non-Color '
63
63
if map_name == 'opacity' :
64
64
transparence_node = nodes .new (type = "ShaderNodeBsdfTransparent" )
65
65
mix_node = nodes .new (type = "ShaderNodeMixShader" )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def createWorld(self):
46
46
if img is not None :
47
47
texture_node = nodes .new (type = "ShaderNodeTexEnvironment" )
48
48
texture_node .image = getCyclesImage (img )
49
- texture_node .color_space = 'COLOR '
49
+ texture_node .image . colorspace_settings . name = 'sRGB '
50
50
links .new (texture_node .outputs ["Color" ], background .inputs ["Color" ])
51
51
52
52
autoAlignNodes (world_output )
Original file line number Diff line number Diff line change 24
24
bl_info = {
25
25
"name" : "Lily Surface Scrapper" ,
26
26
"author" :
"Élie Michel <[email protected] >" ,
27
- "version" : (1 , 1 , 2 ),
27
+ "version" : (1 , 1 , 3 ),
28
28
"blender" : (2 , 80 , 0 ),
29
29
"location" : "Properties > Material" ,
30
30
"description" : "Import material from a single URL" ,
You can’t perform that action at this time.
0 commit comments