[Bf-extensions-cvs] [d71985e] master: Fix incorrect rename of clamp to clight

Robert Guetzkow noreply at git.blender.org
Wed Dec 9 12:32:15 CET 2020


Commit: d71985e901986970dfc86c3d5d1124d0f8c27518
Author: Robert Guetzkow
Date:   Wed Dec 9 12:29:16 2020 +0100
Branches: master
https://developer.blender.org/rBACd71985e901986970dfc86c3d5d1124d0f8c27518

Fix  incorrect rename of clamp to clight

In rBA6aa8e130eff59059886e203ff95221609f63b222 all
occurrences of "lamp" where replaced with "light" which
also accidentally renamed "clamp" to "clight". All incorrect
usages of `clight` are replaced with `clamp` in this patch.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D9783

===================================================================

M	io_scene_3ds/import_3ds.py

===================================================================

diff --git a/io_scene_3ds/import_3ds.py b/io_scene_3ds/import_3ds.py
index 948aa8d..193f53e 100644
--- a/io_scene_3ds/import_3ds.py
+++ b/io_scene_3ds/import_3ds.py
@@ -1146,8 +1146,8 @@ def load_3ds(filepath,
 
     axis_min = [1000000000] * 3
     axis_max = [-1000000000] * 3
-    global_clight_size = IMPORT_CONSTRAIN_BOUNDS
-    if global_clight_size != 0.0:
+    global_clamp_size = IMPORT_CONSTRAIN_BOUNDS
+    if global_clamp_size != 0.0:
         # Get all object bounds
         for ob in imported_objects:
             for v in ob.bound_box:
@@ -1163,7 +1163,7 @@ def load_3ds(filepath,
                        axis_max[2] - axis_min[2])
         scale = 1.0
 
-        while global_clight_size < max_axis * scale:
+        while global_clamp_size < max_axis * scale:
             scale = scale / 10.0
 
         scale_mat = mathutils.Matrix.Scale(scale, 4)



More information about the Bf-extensions-cvs mailing list