Page MenuHome

Volumes: Support selection and outlines in viewport.
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Sep 27 2020, 12:13 AM.

Details

Summary

Previously, one could only select a volume object in the outliner or by clicking on the object origin. This patch allows you to click on the actual volume.
Furthermore, the generated (invisible) mesh that is used for selection is also used to draw an outline for the volume object now.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Sep 27 2020, 12:13 AM
Jacques Lucke (JacquesLucke) created this revision.

This looks great, just minor comments.

source/blender/blenkernel/intern/volume_render.cc
193

Keep comments.

210–211

This code got removed, but as far as I can tell it's still needed? getCenter() and getCornerPoints() don't seem to do the required + 1.

Also, include should be inclusive.

231

Keep this comment.

Brecht Van Lommel (brecht) requested changes to this revision.Sep 28 2020, 12:29 PM
This revision now requires changes to proceed.Sep 28 2020, 12:29 PM
  • bring back comments and inclusive bounding boxes
This revision is now accepted and ready to land.Sep 28 2020, 5:20 PM