Page MenuHome

Spreadsheet: Add material column for meshes
Changes PlannedPublic

Authored by Hans Goudey (HooglyBoogly) on Dec 17 2021, 1:02 AM.

Details

Summary

Add a column to the face section of the spreadsheet showing what material
corresponds to each face, in addition to the existing index. This is
helpful because it displays the name, and eventually it could become a
drag and drop target.

I've noticed a use after free in some cases that I still want to investigate.

Diff Detail

Repository
rB Blender
Branch
spreadsheet-material-column (branched from master)
Build Status
Buildable 19498
Build 19498: arc lint + arc unit

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Dec 17 2021, 1:02 AM
Hans Goudey (HooglyBoogly) created this revision.
Jacques Lucke (JacquesLucke) added inline comments.
source/blender/editors/space_spreadsheet/spreadsheet_data_source_geometry.cc
154

This has to check for the face domain.

  • Add check for face domain
  • Add check for empty material list

Your comment in D13605 made me wonder if we should think about that here too, since these materials aren't stored, they're calculated from the indices and the material list. Maybe having some vertical divider, and then a way to toggle these columns on and off with a popover would be nice. That would solve the current weirdness with instance rotation and scale columns too.

This revision is now accepted and ready to land.Dec 21 2021, 3:37 PM
Hans Goudey (HooglyBoogly) planned changes to this revision.Feb 15 2022, 4:09 AM

I think I haven't committed this for so long because I don't feel totally comfortable adding this derived data to the spreadsheet without any way of visually/conceptually separating it from the other columns. I think I'd rather have an idea of how that would work before committing this.