Page MenuHome

Fix T86168 : Add primitive Grid. Whong number of subdivisions
ClosedPublic

Authored by Pratik Borhade (PratikPB2123) on Mar 12 2021, 6:13 AM.

Details

Summary

Fix T86168
Changes to increase subdivision by one along both axis ( X and Y )

  • changes while allocating memory at BMO_slot_buffer_alloc .
  • for loop iteration increased for extra subdivision .

    eg . for x_segment = 3 and y_segment = 3 . there should be 16 vertices ( (3+1) * ( 3+1) ) for correct number of subdivisions . currently they are 3*3 =9 vertices

Diff Detail

Repository
rB Blender

Event Timeline

Pratik Borhade (PratikPB2123) requested review of this revision.Mar 12 2021, 6:13 AM
Pratik Borhade (PratikPB2123) created this revision.

Thanks, committed rB4d3cdb32d399335dba72c180309c0d34f93cd533

Adding the plane, minimum x/y values needed updating too.

This revision is now accepted and ready to land.Mar 16 2021, 1:12 PM

In the future, it's really helpful to have Differential Revision: https://developer.blender.org/D10699 in the commit message for easily accessing the patch from the commit.