diff options
author | Jacques Lucke <jacques@blender.org> | 2020-04-09 14:04:34 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-04-09 14:04:34 +0300 |
commit | b9e1e769fb6c405222c53407b6bf3710c7cd5a7f (patch) | |
tree | f631856f08987dcacf3e44b8720b08a8ab88a0a9 /source/blender | |
parent | c9bdeef488b322f998c7cd6beb0f33bc13ca6ba2 (diff) |
show name in particle simulation node
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_node/drawnode.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c index 16249ed8c5a..e97bec3f395 100644 --- a/source/blender/editors/space_node/drawnode.c +++ b/source/blender/editors/space_node/drawnode.c @@ -3125,6 +3125,13 @@ static void node_texture_set_butfunc(bNodeType *ntype) /* ****************** BUTTON CALLBACKS FOR SIMULATION NODES ***************** */ +static void node_simulation_buts_particle_simulation(uiLayout *layout, + bContext *UNUSED(C), + PointerRNA *ptr) +{ + uiItemR(layout, ptr, "name", 0, "", ICON_NONE); +} + static void node_simulation_buts_particle_time_step_event(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) @@ -3149,6 +3156,9 @@ static void node_simulation_buts_set_particle_attribute(uiLayout *layout, static void node_simulation_set_butfunc(bNodeType *ntype) { switch (ntype->type) { + case SIM_NODE_PARTICLE_SIMULATION: + ntype->draw_buttons = node_simulation_buts_particle_simulation; + break; case SIM_NODE_PARTICLE_TIME_STEP_EVENT: ntype->draw_buttons = node_simulation_buts_particle_time_step_event; break; |