Page MenuHome

Fix crash whith Simple Solidify and Bevel Convex
ClosedPublic

Authored by Henrik Dick (weasel) on Apr 14 2020, 6:47 PM.

Details

Summary

Fixed the crash when solidify was set to Simple with Fill Rim turned off and Bevel Convex used.

Also fixed that simple solidify would not set the bevel weight flag so the next modifier could use the bevel weights.

Simple cleanup with do_rim is also included.

Diff Detail

Repository
rB Blender

Event Timeline

Henrik Dick (weasel) requested review of this revision.Apr 14 2020, 6:47 PM
Henrik Dick (weasel) created this revision.
  • remembered to use clang format
  • made the inserted comment a proper comment with capital letter and period
Bastien Montagne (mont29) added inline comments.
source/blender/modifiers/intern/MOD_solidify_extrude.c
239

== 0 is very important when assigning a bitflag check to a bool, since you have no other boolean operation. Otherwise, result is of type of the flag storage, and assigning to a bool will overflow in some cases (and you will get some wrong result then).

240

and this is wrong too actually, == 0 should only concern the bitwise &, not the boolean &&.

This revision is now accepted and ready to land.Apr 15 2020, 10:55 AM