From 0a588aef732e7a3a8411f660d77b406528b82f09 Mon Sep 17 00:00:00 2001
From: Bastien Montagne <montagne29@wanadoo.fr>
Date: Wed, 26 Sep 2018 10:17:56 +0200
Subject: [PATCH] FBX import: Add comment about how to handle texture clamping.

---
 io_scene_fbx/import_fbx.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 444ebbf95..8dd605434 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -3021,6 +3021,21 @@ def load(operator, context, filepath="",
                                 "clamp": tex_map[3],
                                 }
 
+                            """
+                            TODO for clamp:
+                                # awkward conversion UV clamping to minmax
+                                node_map.min = (0.0, 0.0, 0.0)
+                                node_map.max = (1.0, 1.0, 1.0)
+
+                                if clamp in {(False, False), (True, True)}:
+                                    node_map.use_min = node_map.use_max = clamp[0]
+                                else:
+                                    node_map.use_min = node_map.use_max = True
+                                    # use bool as index
+                                    node_map.min[not clamp[0]] = -1000000000.0
+                                    node_map.max[not clamp[0]] = 1000000000.0
+                            """
+
                         if lnk_type in {b'DiffuseColor', b'3dsMax|maps|texmap_diffuse'}:
                             ma_wrap.diffuse_image_set(image)
                             if use_mapping:
-- 
GitLab