[Bf-blender-cvs] [d9930cddfd6] master: Fix invalid string comparison in cd692c6954629e977250ec7c12509ffd3f9

Campbell Barton noreply at git.blender.org
Tue Aug 10 03:48:59 CEST 2021


Commit: d9930cddfd6214221f930c1dc3f4de649781ac31
Author: Campbell Barton
Date:   Tue Aug 10 11:46:10 2021 +1000
Branches: master
https://developer.blender.org/rBd9930cddfd6214221f930c1dc3f4de649781ac31

Fix invalid string comparison in cd692c6954629e977250ec7c12509ffd3f9

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

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

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

diff --git a/source/blender/editors/space_node/drawnode.cc b/source/blender/editors/space_node/drawnode.cc
index b5acdede81b..0f7a911e3ce 100644
--- a/source/blender/editors/space_node/drawnode.cc
+++ b/source/blender/editors/space_node/drawnode.cc
@@ -3596,7 +3596,7 @@ static void std_node_socket_draw(
       break;
     }
     case SOCK_TEXTURE: {
-      if (text == "") {
+      if (text[0] == '\0') {
         uiTemplateID(layout,
                      C,
                      ptr,



More information about the Bf-blender-cvs mailing list