Page MenuHome

Cleanup: Remove/replace View Layer macros.
ClosedPublic

Authored by Monique Dewanchand (mdewanchand) on Aug 27 2022, 11:06 PM.

Details

Summary

This patch is a cleanup required before refactoring the view layer syncing
process T73411: Fix ViewLayers cache building.

  • Remove FIRSTBASE.
  • Remove LASTBASE.
  • Remove BASACT.
  • Remove OBEDIT_FROM_WORKSPACE.
  • Replace OBACT with BKE_view_layer_active_object.
  • Replace OBEDIT_FROM_VIEW_LAYER with BKE_view_layer_edit_object.

Diff Detail

Repository
rB Blender

Event Timeline

Bastien Montagne (mont29) requested changes to this revision.Aug 29 2022, 1:57 PM

Looks good, just some minor picky details noted in comments below.

source/blender/blenkernel/BKE_layer.h
546–547

Would be explicit here that this is a getter, and add a _get suffix (so BKE_view_layer_active_object_get etc.).

source/blender/editors/object/object_select.c
781

Better to put the comment above then, than having this weird line wrap ;)

This revision now requires changes to proceed.Aug 29 2022, 1:57 PM
Monique Dewanchand (mdewanchand) marked an inline comment as done.
  • Add _get suffix to BKE_view_layer_active_object and BKE_view_layer_edit_object
  • Move comments.

Looks good to go :)

This revision is now accepted and ready to land.Aug 31 2022, 9:45 AM
This revision was automatically updated to reflect the committed changes.