[Bf-blender-cvs] [1680c3d5104] master: UI: Remove label of mode in Point Instance node

Hans Goudey noreply at git.blender.org
Wed Sep 8 00:06:04 CEST 2021


Commit: 1680c3d5104d5c33a18790023b1b29d16106afe2
Author: Hans Goudey
Date:   Tue Sep 7 17:05:58 2021 -0500
Branches: master
https://developer.blender.org/rB1680c3d5104d5c33a18790023b1b29d16106afe2

UI: Remove label of mode in Point Instance node

There isn't enough space for this label at the default node width, and
it was obvious what the drop-down is doing anyway.

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

M	source/blender/nodes/geometry/nodes/node_geo_point_instance.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_point_instance.cc b/source/blender/nodes/geometry/nodes/node_geo_point_instance.cc
index f5ab9c053c1..72e9e8f5c29 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_point_instance.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_point_instance.cc
@@ -38,7 +38,7 @@ static void geo_node_point_instance_declare(NodeDeclarationBuilder &b)
 
 static void geo_node_point_instance_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 {
-  uiItemR(layout, ptr, "instance_type", 0, nullptr, ICON_NONE);
+  uiItemR(layout, ptr, "instance_type", 0, "", ICON_NONE);
   if (RNA_enum_get(ptr, "instance_type") == GEO_NODE_POINT_INSTANCE_TYPE_COLLECTION) {
     uiItemR(layout, ptr, "use_whole_collection", 0, nullptr, ICON_NONE);
   }



More information about the Bf-blender-cvs mailing list