Page MenuHome

Fix T93334: Amaranth Toolset Bug
AbandonedPublic

Authored by Ayoub ibn Muhammad (cl3m3c7) on Apr 27 2022, 4:10 AM.

Details

Summary

this patch makes Amaranth Toolset check the editor type before selecting the node under cursor.

Diff Detail

Event Timeline

Ayoub ibn Muhammad (cl3m3c7) requested review of this revision.Apr 27 2022, 4:10 AM
Ayoub ibn Muhammad (cl3m3c7) created this revision.

Hi, thanks for the patch.
Is your patch ready for the review? If so, add @pablovazquez as a reviewer

fix compositor editor when the node tree is empty!

Thanks for the report and the patch!

I went with a different approach, instead of checking for the poll in the invoke, I added an actual poll to the operator that checks if there's an active node:

@classmethod
def poll(cls, context):
    return context.active_node is not None

The fix is in: rBAb87642