Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2020-09-29 11:52:10 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2020-10-01 16:42:51 +0300
commitf79b4850fb3c29bf2a153428b1b4d4b5f67121f9 (patch)
treee7d5bfab1037a5fad447aa83170477d76b2b1ff2 /source/blender/blenkernel/BKE_world.h
parent91f061003cafd06cc9b9c157b0853a820e69d1ae (diff)
Fix T81248: World nodetree action is linked after duplication
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`] Note: taking the User Preference `USER_DUP_ACT` into account here (for both material and world actions) could be a followup step. Maniphest Tasks: T81248 Differential Revision: https://developer.blender.org/D9046
Diffstat (limited to 'source/blender/blenkernel/BKE_world.h')
-rw-r--r--source/blender/blenkernel/BKE_world.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_world.h b/source/blender/blenkernel/BKE_world.h
index 82830facccc..73eb340e887 100644
--- a/source/blender/blenkernel/BKE_world.h
+++ b/source/blender/blenkernel/BKE_world.h
@@ -31,7 +31,6 @@ struct Main;
struct World;
struct World *BKE_world_add(struct Main *bmain, const char *name);
-struct World *BKE_world_copy(struct Main *bmain, const struct World *wrld);
struct World *BKE_world_localize(struct World *wrld);
void BKE_world_eval(struct Depsgraph *depsgraph, struct World *world);