Page MenuHome

remove action edited tab from NLA strip select
ClosedPublic

Authored by Nate Rupsis (nrupsis) on May 17 2022, 1:28 AM.

Details

Summary

This patch removes the "Edited Action" tab for selected Action strips in the NLA editor

Old:

New:

Diff Detail

Repository
rB Blender

Event Timeline

Nate Rupsis (nrupsis) requested review of this revision.May 17 2022, 1:28 AM
Nate Rupsis (nrupsis) created this revision.

Yeah having it removed I think is the right thing, the way I am seeing it work in the video feels good an removes the risk of mistakes of ending up on the wrong tab and trying to fix things that are not strip related.
Approved from the artist side of things.

This revision is now accepted and ready to land.May 17 2022, 4:21 AM

So. Much. Better this way.

Just a few inline notes, which don't need any reuploading of the patch. One thing I'm curious about is the parentheses thing. Do you prefer

return (nla_panel_context(C, &ptr, NULL, &strip_ptr) && (ptr.data != NULL) && (ptr.owner_id != strip_ptr.owner_id));

or

return nla_panel_context(C, &ptr, NULL, &strip_ptr) && ptr.data != NULL && ptr.owner_id != strip_ptr.owner_id;

?

source/blender/editors/space_nla/nla_buttons.c
217

I'm not a fan of superfluous parentheses, so if you want, feel free to be inconsistent with the previous expression and remove them:

return nla_panel_context(C, &ptr, NULL, &strip_ptr) && ptr.data != NULL && ptr.owner_id != strip_ptr.owner_id;
280

Make sure you either have Clang-Format set up in your IDE or run make format before submitting patches. No need to resubmit though, I'll run make format before landing the patch.

So. Much. Better this way.

Just a few inline notes, which don't need any reuploading of the patch. One thing I'm curious about is the parentheses thing. Do you prefer

return (nla_panel_context(C, &ptr, NULL, &strip_ptr) && (ptr.data != NULL) && (ptr.owner_id != strip_ptr.owner_id));

or

return nla_panel_context(C, &ptr, NULL, &strip_ptr) && ptr.data != NULL && ptr.owner_id != strip_ptr.owner_id;

?

my preference has always been to be as explicit as possible when it comes to mathematical (or logical) operations. hence the groupings for parentheses (i swear i don't come from a lisp background 😄 )

But at the end of the day, It doesn't really matter to me, and I'd rather follow conventions that others prefer.

Looks like my auto-format wasn't on for my Vscode workspace 🙄 That should be fixed.