[Bf-blender-cvs] [b9e1e769fb6] temp-test-point-cloud-simulation-depsgraph-integration: show name in particle simulation node

Jacques Lucke noreply at git.blender.org
Wed Apr 15 18:27:14 CEST 2020


Commit: b9e1e769fb6c405222c53407b6bf3710c7cd5a7f
Author: Jacques Lucke
Date:   Thu Apr 9 13:04:34 2020 +0200
Branches: temp-test-point-cloud-simulation-depsgraph-integration
https://developer.blender.org/rBb9e1e769fb6c405222c53407b6bf3710c7cd5a7f

show name in particle simulation node

===================================================================

M	source/blender/editors/space_node/drawnode.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list