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:
authorLukas Tönne <lukas.toenne@gmail.com>2017-12-28 17:16:44 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2017-12-30 11:03:34 +0300
commited27d3a398990d2fd541a4d4bc4e5715406ed12c (patch)
tree17c522f9c9b334abf390402669cc4d01a1dc5796 /source/blender/editors/space_buttons
parentb3c4ee52665b467d1679e84948c1a21fb6ed51cb (diff)
Add UI script for groom data.
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r--source/blender/editors/space_buttons/buttons_context.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index c9c62164da6..4b5f01897c1 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -810,7 +810,7 @@ const char *buttons_context_dir[] = {
"texture", "texture_user", "texture_user_property", "bone", "edit_bone",
"pose_bone", "particle_system", "particle_system_editable", "particle_settings",
"cloth", "soft_body", "fluid", "smoke", "collision", "brush", "dynamic_paint",
- "line_style", "collection", "workspace", NULL
+ "line_style", "collection", "workspace", "groom", NULL
};
int buttons_context(const bContext *C, const char *member, bContextDataResult *result)
@@ -1142,6 +1142,10 @@ int buttons_context(const bContext *C, const char *member, bContextDataResult *r
set_pointer_type(path, result, &RNA_LayerCollection);
return 1;
}
+ else if (CTX_data_equals(member, "groom")) {
+ set_pointer_type(path, result, &RNA_Groom);
+ return 1;
+ }
else {
return 0; /* not found */
}