Page MenuHome

Fix T81248: World nodetree action is linked after duplication
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Sep 29 2020, 10:53 AM.

Details

Summary

This was already changed for Material nodetrees on duplication in
rBa75ac18638f4.
Since it is not obvious from the UI how change World actions - and to be
consistent with Material actions, it is best to copy the action as the
default behavior.
So use generic BKE_id_copy functions with LIB_ID_COPY_ACTIONS flag [which
also enables us to get rid of BKE_world_copy]

I would also propose to take the User Preference USER_DUP_ACT into
account (for both material and world actions) as a followup step?

Diff Detail

Repository
rB Blender
Branch
T81248 (branched from master)
Build Status
Buildable 10455
Build 10455: arc lint + arc unit

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Sep 29 2020, 10:53 AM
Philipp Oeser (lichtwerk) created this revision.

LGTM, indeed taking userpreferences into account here would make sense too.

This revision is now accepted and ready to land.Sep 30 2020, 1:38 PM

Will hold this back until we have clarity over T81267: Assert adding a new material with animation through the material template_ID

taking userpreferences into account here would make sense too

I guess it would even make sense for id_single_user? (also taking the User Preference into account)