Merge branch 'blender-v2.92-release'

This commit is contained in:
Julien Duroure 2021-01-17 09:43:30 +01:00
commit 377222442f
2 changed files with 11 additions and 5 deletions

View File

@ -15,7 +15,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (1, 6, 1),
"version": (1, 6, 2),
'blender': (2, 91, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',

View File

@ -16,7 +16,7 @@ from ...io.com.gltf2_io import TextureInfo, MaterialNormalTextureInfoClass
from .gltf2_blender_texture import texture
# [Texture] => [Clearcoat Factor] =>
# [Texture] => [Separate R] => [Clearcoat Factor] =>
def clearcoat(mh, location, clearcoat_socket):
x, y = location
try:
@ -49,9 +49,15 @@ def clearcoat(mh, location, clearcoat_socket):
x -= 200
# Clearcoat is in the R component; we don't need to separate it out
# since hooking a color socket up to a value socket automatically gets
# the R
# Separate RGB
node = mh.node_tree.nodes.new('ShaderNodeSeparateRGB')
node.location = x - 150, y - 75
# Outputs
mh.node_tree.links.new(clearcoat_socket, node.outputs['R'])
# Inputs
clearcoat_socket = node.inputs[0]
x -= 200
texture(
mh,