Fix T76821: Generalize Use Flow Tooltip

This commit is contained in:
Aaron Carlisle 2020-05-19 00:53:59 -04:00
parent 15bf81268c
commit 5fa58fb8a2
Notes: blender-bot 2023-02-13 22:29:49 +01:00
Referenced by issue #76821, "Use Flow" tooltip still saying "Inflow" when Outflow is chosen
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ class PHYSICS_PT_settings(PhysicButtonsPanel, Panel):
col = grid.column()
col.prop(flow, "flow_behavior", expand=False)
if flow.flow_behavior in {'INFLOW', 'OUTFLOW'}:
col.prop(flow, "use_inflow", text="Use Flow")
col.prop(flow, "use_inflow")
col.prop(flow, "subframes", text="Sampling Substeps")

View File

@ -2516,7 +2516,7 @@ static void rna_def_fluid_flow_settings(BlenderRNA *brna)
prop = RNA_def_property(srna, "use_inflow", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flags", FLUID_FLOW_USE_INFLOW);
RNA_def_property_ui_text(prop, "Enabled", "Control when to apply inflow");
RNA_def_property_ui_text(prop, "Use Flow", "Control when to apply fluid flow");
RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_flow_reset");
prop = RNA_def_property(srna, "subframes", PROP_INT, PROP_NONE);