Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_fluid.c
| Show First 20 Lines • Show All 2,465 Lines • ▼ Show 20 Lines | static void rna_def_fluid_flow_settings(BlenderRNA *brna) | ||||
| RNA_def_property_ui_range(prop, 0.0, 2.0, 0.05, 5); | RNA_def_property_ui_range(prop, 0.0, 2.0, 0.05, 5); | ||||
| RNA_def_property_ui_text(prop, "Random", "Amount of random velocity"); | RNA_def_property_ui_text(prop, "Random", "Amount of random velocity"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_flow_reset"); | RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_flow_reset"); | ||||
| prop = RNA_def_property(srna, "velocity_coord", PROP_FLOAT, PROP_XYZ); | prop = RNA_def_property(srna, "velocity_coord", PROP_FLOAT, PROP_XYZ); | ||||
| RNA_def_property_float_sdna(prop, NULL, "vel_coord"); | RNA_def_property_float_sdna(prop, NULL, "vel_coord"); | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_range(prop, -1000.1, 1000.1); | RNA_def_property_range(prop, -1000.1, 1000.1); | ||||
| RNA_def_property_ui_text(prop, "Initial", "Initial velocity in X, Y and Z direction"); | RNA_def_property_ui_text( | ||||
| prop, "Initial", "Initial velocity in X, Y and Z direction in world space"); | |||||
| RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_flow_reset"); | RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Fluid_flow_reset"); | ||||
| prop = RNA_def_property(srna, "volume_density", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "volume_density", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_range(prop, 0.0, 1.0); | RNA_def_property_range(prop, 0.0, 1.0); | ||||
| RNA_def_property_ui_range(prop, 0.0, 1.0, 0.05, 5); | RNA_def_property_ui_range(prop, 0.0, 1.0, 0.05, 5); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Volume Emission", | "Volume Emission", | ||||
| "Controls fluid emission from within the mesh (higher value results in " | "Controls fluid emission from within the mesh (higher value results in " | ||||
| ▲ Show 20 Lines • Show All 187 Lines • Show Last 20 Lines | |||||