[Bf-blender-cvs] [eba518c0401] hair_guides: Add groom data path to buttons context.
Lukas Tönne
noreply at git.blender.org
Mon Dec 18 12:15:42 CET 2017
Commit: eba518c040171b7dd91fb48ac760442a110dbec1
Author: Lukas Tönne
Date: Mon Dec 18 10:25:53 2017 +0000
Branches: hair_guides
https://developer.blender.org/rBeba518c040171b7dd91fb48ac760442a110dbec1
Add groom data path to buttons context.
===================================================================
M source/blender/editors/space_buttons/buttons_context.c
===================================================================
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index 8866c6b6c40..c9c62164da6 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -249,6 +249,7 @@ static int buttons_context_path_data(ButsContextPath *path, int type)
else if (RNA_struct_is_a(ptr->type, &RNA_Lamp) && (type == -1 || type == OB_LAMP)) return 1;
else if (RNA_struct_is_a(ptr->type, &RNA_Speaker) && (type == -1 || type == OB_SPEAKER)) return 1;
else if (RNA_struct_is_a(ptr->type, &RNA_LightProbe) && (type == -1 || type == OB_LIGHTPROBE)) return 1;
+ else if (RNA_struct_is_a(ptr->type, &RNA_Groom) && (type == -1 || type == OB_GROOM)) return 1;
/* try to get an object in the path, no pinning supported here */
else if (buttons_context_path_object(path)) {
ob = path->ptr[path->len - 1].data;
More information about the Bf-blender-cvs
mailing list