Skip to content

Commit

Permalink
variable name tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
stuffmatic committed Dec 4, 2018
1 parent 26b09e5 commit a0affef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fspy_blender/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,17 +232,17 @@ def set_reference_distance_unit(self, project, camera):
is_imperial = True

if blender_unit:
distance_scale = 1.0
camera_distance_scale = 1.0
if is_imperial:
distance_scale = 1.0 / 3.2808399
camera_distance_scale = 1.0 / 3.2808399
unit_settings.system = 'IMPERIAL'
else:
unit_settings.system = 'METRIC'
unit_settings.length_unit = blender_unit
unit_settings.scale_length = scale_length
camera.location.x *= distance_scale
camera.location.y *= distance_scale
camera.location.z *= distance_scale
camera.location.x *= camera_distance_scale
camera.location.y *= camera_distance_scale
camera.location.z *= camera_distance_scale
else:
unit_settings.system = 'NONE'
unit_settings.scale_length = 1.0
Expand Down

0 comments on commit a0affef

Please sign in to comment.