Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_particle.c
| Show First 20 Lines • Show All 2,735 Lines • ▼ Show 20 Lines | static void rna_def_particle_settings(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, 0, "rna_Particle_reset"); | RNA_def_property_update(prop, 0, "rna_Particle_reset"); | ||||
| prop = RNA_def_property(srna, "size_random", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "size_random", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "randsize"); | RNA_def_property_float_sdna(prop, NULL, "randsize"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_text(prop, "Random Size", "Give the particle size a random variation"); | RNA_def_property_ui_text(prop, "Random Size", "Give the particle size a random variation"); | ||||
| RNA_def_property_update(prop, 0, "rna_Particle_reset"); | RNA_def_property_update(prop, 0, "rna_Particle_reset"); | ||||
| prop = RNA_def_property(srna, "collision_group", PROP_POINTER, PROP_NONE); | |||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_ui_text(prop, "Collision Group", "Limit colliders to this Group"); | |||||
| RNA_def_property_update(prop, 0, "rna_Particle_reset"); | |||||
| /* global physical properties */ | /* global physical properties */ | ||||
| prop = RNA_def_property(srna, "drag_factor", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "drag_factor", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "dragfac"); | RNA_def_property_float_sdna(prop, NULL, "dragfac"); | ||||
| RNA_def_property_range(prop, 0.0f, 1.0f); | RNA_def_property_range(prop, 0.0f, 1.0f); | ||||
| RNA_def_property_ui_text(prop, "Drag", "Amount of air-drag"); | RNA_def_property_ui_text(prop, "Drag", "Amount of air-drag"); | ||||
| RNA_def_property_update(prop, 0, "rna_Particle_reset"); | RNA_def_property_update(prop, 0, "rna_Particle_reset"); | ||||
| ▲ Show 20 Lines • Show All 810 Lines • Show Last 20 Lines | |||||