Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_fluid.c
| Show First 20 Lines • Show All 2,576 Lines • ▼ Show 20 Lines | static void rna_def_fluid_flow_settings(BlenderRNA *brna) | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, | prop, | ||||
| "Is Planar", | "Is Planar", | ||||
| "Treat this object as a planar and unclosed mesh. Fluid will only be emitted from the mesh " | "Treat this object as a planar and unclosed mesh. Fluid will only be emitted from the mesh " | ||||
| "surface and based on the surface emission value"); | "surface and based on the surface emission value"); | ||||
| 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, "particle_size", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "particle_size", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_range(prop, 0.1, 20.0); | RNA_def_property_range(prop, 0.1, FLT_MAX); | ||||
| RNA_def_property_ui_range(prop, 0.5, 5.0, 0.05, 5); | RNA_def_property_ui_range(prop, 0.5, 5.0, 0.05, 5); | ||||
| RNA_def_property_ui_text(prop, "Size", "Particle size in simulation cells"); | RNA_def_property_ui_text(prop, "Size", "Particle size in simulation cells"); | ||||
| 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, "use_particle_size", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_particle_size", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flags", FLUID_FLOW_USE_PART_SIZE); | RNA_def_property_boolean_sdna(prop, NULL, "flags", FLUID_FLOW_USE_PART_SIZE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Set Size", "Set particle size in simulation cells or use nearest cell"); | prop, "Set Size", "Set particle size in simulation cells or use nearest cell"); | ||||
| ▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines | |||||