From 70d48255aeae66c9ce62b0458cf7519adea45cf2 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 26 Aug 2020 11:26:19 +0200 Subject: [PATCH] Fix T79992: Error calling context.copy() in Properties Editor This was an oversight in rB83e3d25bcae3. Basically we still have the "hair" and "point_cloud" entries for the context. However they were ifdef'ed. Note this would mostly happen in 2.90 since we always build without hair and particles there. Differential Revision: https://developer.blender.org/D8712 --- source/blender/editors/space_buttons/buttons_context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c index 044fadb9a50..e3e41af02cf 100644 --- a/source/blender/editors/space_buttons/buttons_context.c +++ b/source/blender/editors/space_buttons/buttons_context.c @@ -795,8 +795,12 @@ const char *buttons_context_dir[] = { "line_style", "collection", "gpencil", +#ifdef WITH_HAIR_NODES "hair", +#endif +#ifdef WITH_PARTICLE_NODES "pointcloud", +#endif "volume", NULL, };