[Bf-blender-cvs] [45b5a291975] temp-geometry-nodes-attribute-search: Attribute Search: Remove debug prints

Hans Goudey noreply at git.blender.org
Tue Feb 23 23:12:26 CET 2021


Commit: 45b5a291975da1a58437fd4f706ee49ce69f8087
Author: Hans Goudey
Date:   Tue Feb 23 16:12:19 2021 -0600
Branches: temp-geometry-nodes-attribute-search
https://developer.blender.org/rB45b5a291975da1a58437fd4f706ee49ce69f8087

Attribute Search: Remove debug prints

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

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

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

diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index aa285f768e4..0002cc8abf0 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -8115,10 +8115,6 @@ static void button_activate_init(bContext *C,
   /* activate button */
   but->flag |= UI_ACTIVE;
 
-  if (but->type == UI_BTYPE_SEARCH_MENU) {
-    printf("ACTIVATING SEARCH MENU BUTTON\n");
-  }
-
   but->active = data;
 
   /* we disable auto_open in the block after a threshold, because we still
@@ -8299,9 +8295,6 @@ static void button_activate_exit(
   /* clean up button */
   if (but->active) {
     MEM_freeN(but->active);
-    if (but->type == UI_BTYPE_SEARCH_MENU) {
-      printf("DEACTIVATING SEARCH MENU BUTTON\n");
-    }
     but->active = NULL;
   }
 
@@ -10726,10 +10719,6 @@ static int ui_region_handler(bContext *C, const wmEvent *event, void *UNUSED(use
     return retval;
   }
 
-  if (event->type == LEFTMOUSE) {
-    printf("sdf");
-  }
-
   /* either handle events for already activated button or try to activate */
   uiBut *but = ui_region_find_active_but(region);
   uiBut *listbox = ui_list_find_mouse_over(region, event);
diff --git a/source/blender/editors/space_node/drawnode.c b/source/blender/editors/space_node/drawnode.c
index 220bf9a8e68..ddc6adbb52f 100644
--- a/source/blender/editors/space_node/drawnode.c
+++ b/source/blender/editors/space_node/drawnode.c
@@ -3389,29 +3389,6 @@ static void std_node_socket_draw(
       uiItemL(row, text, 0);
 
       uiBlock *block = uiLayoutGetBlock(row);
-
-      // bNodeSocketValueString *socket_value = (bNodeSocketValueString *)sock->default_value;
-      // char *buffer = MEM_mallocN(256, __func__);
-      // strcpy(buffer, socket_value->value);
-      //   uiBut *but = uiDefSearchBut(
-      // block, buffer, 0, ICON_NONE, 256, 10, 10, 200, UI_UNIT_Y, 0, 0, "");
-
-      // uiBut *but = uiDefButR(block,
-      //                        UI_BTYPE_SEARCH_MENU,
-      //                        0,
-      //                        "",
-      //                        0,
-      //                        0,
-      //                        UI_UNIT_X * 10,
-      //                        UI_UNIT_Y,
-      //                        ptr,
-      //                        "default_value",
-      //                        0,
-      //                        0.0f,
-      //                        0.0f,
-      //                        0.0f,
-      //                        0.0f,
-      //                        "");
       uiBut *but = uiDefIconTextButR(block,
                                      UI_BTYPE_SEARCH_MENU,
                                      0,



More information about the Bf-blender-cvs mailing list