Fix: Incorrect interface/tooltip translation check
These panel header labels should be translated when the interface is translated but they checked for tooltip translation instead. Pull Request: https://projects.blender.org/blender/blender/pulls/133412
This commit is contained in:
@@ -77,7 +77,7 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *ptr)
|
||||
uiItemR(layout, ptr, "domain", UI_ITEM_NONE, "", ICON_NONE);
|
||||
|
||||
if (uiLayout *panel = uiLayoutPanel(
|
||||
C, layout, "capture_attribute_items", false, TIP_("Capture Items")))
|
||||
C, layout, "capture_attribute_items", false, IFACE_("Capture Items")))
|
||||
{
|
||||
socket_items::ui::draw_items_list_with_operators<CaptureAttributeItemsAccessor>(
|
||||
C, panel, tree, node);
|
||||
|
||||
@@ -135,7 +135,7 @@ static void draw_bake_items(const bContext *C, uiLayout *layout, PointerRNA node
|
||||
bNode &node = *static_cast<bNode *>(node_ptr.data);
|
||||
NodeGeometryBake &storage = node_storage(node);
|
||||
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "bake_items", false, TIP_("Bake Items"))) {
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "bake_items", false, IFACE_("Bake Items"))) {
|
||||
socket_items::ui::draw_items_list_with_operators<BakeItemsAccessor>(C, panel, tree, node);
|
||||
socket_items::ui::draw_active_item_props<BakeItemsAccessor>(
|
||||
tree, node, [&](PointerRNA *item_ptr) {
|
||||
@@ -879,7 +879,7 @@ void draw_data_blocks(const bContext *C, uiLayout *layout, PointerRNA &bake_rna)
|
||||
bake_rna.owner_id, &RNA_NodesModifierBakeDataBlocks, bake_rna.data);
|
||||
|
||||
if (uiLayout *panel = uiLayoutPanel(
|
||||
C, layout, "data_block_references", true, TIP_("Data-Block References")))
|
||||
C, layout, "data_block_references", true, IFACE_("Data-Block References")))
|
||||
{
|
||||
uiTemplateList(panel,
|
||||
C,
|
||||
|
||||
@@ -50,7 +50,7 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *current_no
|
||||
auto &storage = *static_cast<NodeGeometryForeachGeometryElementOutput *>(output_node.storage);
|
||||
|
||||
if (is_zone_input_node) {
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "input", false, TIP_("Input Fields"))) {
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "input", false, IFACE_("Input Fields"))) {
|
||||
socket_items::ui::draw_items_list_with_operators<ForeachGeometryElementInputItemsAccessor>(
|
||||
C, panel, ntree, output_node);
|
||||
socket_items::ui::draw_active_item_props<ForeachGeometryElementInputItemsAccessor>(
|
||||
@@ -62,7 +62,7 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *current_no
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "main_items", false, TIP_("Main Geometry"))) {
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "main_items", false, IFACE_("Main Geometry"))) {
|
||||
socket_items::ui::draw_items_list_with_operators<ForeachGeometryElementMainItemsAccessor>(
|
||||
C, panel, ntree, output_node);
|
||||
socket_items::ui::draw_active_item_props<ForeachGeometryElementMainItemsAccessor>(
|
||||
@@ -73,7 +73,7 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *current_no
|
||||
});
|
||||
}
|
||||
if (uiLayout *panel = uiLayoutPanel(
|
||||
C, layout, "generation_items", false, TIP_("Generated Geometry")))
|
||||
C, layout, "generation_items", false, IFACE_("Generated Geometry")))
|
||||
{
|
||||
socket_items::ui::draw_items_list_with_operators<
|
||||
ForeachGeometryElementGenerationItemsAccessor>(C, panel, ntree, output_node);
|
||||
|
||||
@@ -70,7 +70,7 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *ptr)
|
||||
{
|
||||
bNode &node = *static_cast<bNode *>(ptr->data);
|
||||
NodeIndexSwitch &storage = node_storage(node);
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "index_switch_items", false, TIP_("Items"))) {
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "index_switch_items", false, IFACE_("Items"))) {
|
||||
uiItemO(panel, IFACE_("Add Item"), ICON_ADD, "node.index_switch_item_add");
|
||||
uiLayout *col = uiLayoutColumn(panel, false);
|
||||
for (const int i : IndexRange(storage.items_num)) {
|
||||
|
||||
@@ -361,7 +361,8 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *ptr)
|
||||
|
||||
uiItemR(layout, ptr, "data_type", UI_ITEM_NONE, "", ICON_NONE);
|
||||
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "menu_switch_items", false, TIP_("Menu Items"))) {
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "menu_switch_items", false, IFACE_("Menu Items")))
|
||||
{
|
||||
socket_items::ui::draw_items_list_with_operators<MenuSwitchItemsAccessor>(
|
||||
C, panel, tree, node);
|
||||
socket_items::ui::draw_active_item_props<MenuSwitchItemsAccessor>(
|
||||
|
||||
@@ -48,7 +48,7 @@ static void node_layout_ex(uiLayout *layout, bContext *C, PointerRNA *current_no
|
||||
PointerRNA output_node_ptr = RNA_pointer_create(
|
||||
current_node_ptr->owner_id, &RNA_Node, &output_node);
|
||||
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "repeat_items", false, TIP_("Repeat Items"))) {
|
||||
if (uiLayout *panel = uiLayoutPanel(C, layout, "repeat_items", false, IFACE_("Repeat Items"))) {
|
||||
socket_items::ui::draw_items_list_with_operators<RepeatItemsAccessor>(
|
||||
C, panel, ntree, output_node);
|
||||
socket_items::ui::draw_active_item_props<RepeatItemsAccessor>(
|
||||
|
||||
@@ -199,7 +199,7 @@ static void draw_simulation_state(const bContext *C,
|
||||
bNode &output_node)
|
||||
{
|
||||
if (uiLayout *panel = uiLayoutPanel(
|
||||
C, layout, "simulation_state_items", false, TIP_("Simulation State")))
|
||||
C, layout, "simulation_state_items", false, IFACE_("Simulation State")))
|
||||
{
|
||||
socket_items::ui::draw_items_list_with_operators<SimulationItemsAccessor>(
|
||||
C, panel, ntree, output_node);
|
||||
|
||||
Reference in New Issue
Block a user