[Bf-extensions-cvs] [b530802c] master: MeasureIt: Apply world scale to Area

Antonio Vazquez noreply at git.blender.org
Sat Feb 29 11:54:52 CET 2020


Commit: b530802c223f054f70474d60c1accda27446fe0b
Author: Antonio Vazquez
Date:   Sat Feb 29 11:54:35 2020 +0100
Branches: master
https://developer.blender.org/rBAb530802c223f054f70474d60c1accda27446fe0b

MeasureIt: Apply world scale to Area

This is part of T68964

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

M	measureit/measureit_geometry.py

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

diff --git a/measureit/measureit_geometry.py b/measureit/measureit_geometry.py
index 00d12bee..1f314f7f 100644
--- a/measureit/measureit_geometry.py
+++ b/measureit/measureit_geometry.py
@@ -709,6 +709,9 @@ def get_area_and_paint(myvertices, myobj, obverts, region, rv3d, rgba, ms_scale)
     else:
         return 0.0
 
+    # Apply world scale
+    totarea *= bpy.context.scene.unit_settings.scale_length
+
     return totarea



More information about the Bf-extensions-cvs mailing list