Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'io_scene_gltf2/blender/imp/gltf2_blender_map_occlusion.py')
-rwxr-xr-xio_scene_gltf2/blender/imp/gltf2_blender_map_occlusion.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_scene_gltf2/blender/imp/gltf2_blender_map_occlusion.py b/io_scene_gltf2/blender/imp/gltf2_blender_map_occlusion.py
index 5c41ce9e..70e1e54a 100755
--- a/io_scene_gltf2/blender/imp/gltf2_blender_map_occlusion.py
+++ b/io_scene_gltf2/blender/imp/gltf2_blender_map_occlusion.py
@@ -22,13 +22,13 @@ class BlenderOcclusionMap():
raise RuntimeError("%s should not be instantiated" % cls)
@staticmethod
- def create(gltf, material_idx):
+ def create(gltf, material_idx, vertex_color):
"""Occlusion map creation."""
engine = bpy.context.scene.render.engine
if engine in ['CYCLES', 'BLENDER_EEVEE']:
- BlenderOcclusionMap.create_nodetree(gltf, material_idx)
+ BlenderOcclusionMap.create_nodetree(gltf, material_idx, vertex_color)
- def create_nodetree(gltf, material_idx):
+ def create_nodetree(gltf, material_idx, vertex_color):
"""Nodetree creation."""
pymaterial = gltf.data.materials[material_idx]