Files
test2/source/blender/blenkernel/intern
Pratik Borhade c13754e647 Fixes T84928 : Lattice vertices at unexpected positions when changing lattice resolution from 1 to 3 or more.
Fix for T84928 .
Considering the changes , issue is resolved ( Ignoring readability issues) .

**Changes **:

  - `Change in value assignment of fu/v/w :`  Observing previous code , I noticed ,value assigned to them is equivalent to -0.5 ( i.e. co-ordinate of left most vertex of lattice size =1 where  centre of lattice is origin ) .

  - `Change in value assignment of du/v/w :`    Margin ( distance ) between each division of surface along any axis is equivalent to **( (length of surface along axis ) / (no of division line - 1) )** . that's why is changed it to (default_size/unew -1) .

  - ` New variable declared "default_size"  :`  As far as I gone through the code , I noticed values  1 < du ,fu < 1  , which indicates these values were calculated with respect to default lattice of size 1 .

  - `removed pntsu/v/w != 1 check :`  Following changes inside the if block worked properly for pntsu/v/w = 1 .

Reviewed By: lichtwerk, campbellbarton

Differential Revision: https://developer.blender.org/D10353
2021-02-16 13:47:12 +01:00
..
2020-11-25 11:19:28 +01:00
2020-12-19 07:25:01 +01:00
2020-12-16 17:08:19 +01:00
2020-11-06 12:32:54 +11:00
2021-01-15 12:36:03 -07:00
2020-11-06 12:32:54 +11:00
2021-01-19 18:58:35 +01:00
2020-10-14 15:12:40 +11:00
2020-12-15 12:34:25 +11:00
2021-01-05 17:04:02 +01:00
2020-09-09 16:36:57 +02:00
2020-12-19 07:25:01 +01:00
2020-12-19 07:25:01 +01:00
2020-12-16 21:03:42 -07:00
2021-01-05 17:04:02 +01:00
2020-11-20 11:39:22 +11:00
2020-11-06 12:32:54 +11:00
2021-01-13 13:21:29 +11:00
2020-08-08 13:38:00 +10:00
2020-10-22 17:08:37 -04:00
2020-12-15 12:01:45 +01:00
2020-12-19 07:25:01 +01:00
2020-10-11 13:00:49 -04:00
2020-12-07 13:25:53 +11:00
2020-11-06 12:50:03 -06:00