blender/source
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
..
blender Fixes T84928 : Lattice vertices at unexpected positions when changing lattice resolution from 1 to 3 or more. 2021-02-16 13:47:12 +01:00
creator creator: add missing '--debug-*' arguments under debugging options 2021-02-02 19:34:47 +11:00
tools@dd131bc4f9 Fix T85363: Cmd + Tab shortcut overridden on macOS 2021-02-04 14:27:44 +01:00
CMakeLists.txt MSVC: Enable clang-tidy analyser 2020-12-03 11:00:58 -07:00