Skip to content

Commit a0affef

Browse files
committed
variable name tweak
1 parent 26b09e5 commit a0affef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fspy_blender/addon.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,17 +232,17 @@ def set_reference_distance_unit(self, project, camera):
232232
is_imperial = True
233233

234234
if blender_unit:
235-
distance_scale = 1.0
235+
camera_distance_scale = 1.0
236236
if is_imperial:
237-
distance_scale = 1.0 / 3.2808399
237+
camera_distance_scale = 1.0 / 3.2808399
238238
unit_settings.system = 'IMPERIAL'
239239
else:
240240
unit_settings.system = 'METRIC'
241241
unit_settings.length_unit = blender_unit
242242
unit_settings.scale_length = scale_length
243-
camera.location.x *= distance_scale
244-
camera.location.y *= distance_scale
245-
camera.location.z *= distance_scale
243+
camera.location.x *= camera_distance_scale
244+
camera.location.y *= camera_distance_scale
245+
camera.location.z *= camera_distance_scale
246246
else:
247247
unit_settings.system = 'NONE'
248248
unit_settings.scale_length = 1.0

0 commit comments

Comments
 (0)