Cleanup: unused calculation
authorCampbell Barton <ideasman42@gmail.com>
Fri, 4 Jan 2019 08:08:46 +0000 (19:08 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 4 Jan 2019 08:08:46 +0000 (19:08 +1100)
source/blender/blenkernel/intern/object.c

index 0bff236..8ab3962 100644 (file)
@@ -2554,9 +2554,7 @@ void BKE_object_dimensions_set(Object *ob, const float value[3])
 
        bb = BKE_object_boundbox_get(ob);
        if (bb) {
-               float scale[3], len[3];
-
-               mat4_to_size(scale, ob->obmat);
+               float len[3];
 
                len[0] = bb->vec[4][0] - bb->vec[0][0];
                len[1] = bb->vec[2][1] - bb->vec[0][1];