Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_particle.c
| Show First 20 Lines • Show All 2,725 Lines • ▼ Show 20 Lines | static void rna_def_particle_settings(BlenderRNA *brna) | ||||
| 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); | prop = RNA_def_property(srna, "collision_group", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Collection"); | |||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Collision Group", "Limit colliders to this Group"); | RNA_def_property_ui_text(prop, "Collision Collection", "Limit colliders to this collection"); | ||||
| RNA_def_property_update(prop, 0, "rna_Particle_reset_dependency"); | RNA_def_property_update(prop, 0, "rna_Particle_reset_dependency"); | ||||
| /* 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 295 Lines • ▼ Show 20 Lines | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "use_modifier_stack", 0); | RNA_def_property_boolean_sdna(prop, NULL, "use_modifier_stack", 0); | ||||
| RNA_def_property_ui_text(prop, "Use Modifier Stack", "Emit particles from mesh with modifiers applied " | RNA_def_property_ui_text(prop, "Use Modifier Stack", "Emit particles from mesh with modifiers applied " | ||||
| "(must use same subsurf level for viewport and render for correct results)"); | "(must use same subsurf level for viewport and render for correct results)"); | ||||
| RNA_def_property_update(prop, 0, "rna_Particle_change_type"); | RNA_def_property_update(prop, 0, "rna_Particle_change_type"); | ||||
| /* draw objects & groups */ | /* draw objects & groups */ | ||||
| prop = RNA_def_property(srna, "dupli_group", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "dupli_group", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "dup_group"); | RNA_def_property_pointer_sdna(prop, NULL, "dup_group"); | ||||
| RNA_def_property_struct_type(prop, "Group"); | RNA_def_property_struct_type(prop, "Collection"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Dupli Group", "Show Objects in this Group in place of particles"); | RNA_def_property_ui_text(prop, "Dupli Collection", "Show Objects in this collection in place of particles"); | ||||
| RNA_def_property_update(prop, 0, "rna_Particle_redo"); | RNA_def_property_update(prop, 0, "rna_Particle_redo"); | ||||
| prop = RNA_def_property(srna, "dupli_weights", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "dupli_weights", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "dupliweights", NULL); | RNA_def_property_collection_sdna(prop, NULL, "dupliweights", NULL); | ||||
| RNA_def_property_struct_type(prop, "ParticleDupliWeight"); | RNA_def_property_struct_type(prop, "ParticleDupliWeight"); | ||||
| RNA_def_property_ui_text(prop, "Dupli Group Weights", "Weights for all of the objects in the dupli group"); | RNA_def_property_ui_text(prop, "Dupli Group Weights", "Weights for all of the objects in the dupli group"); | ||||
| prop = RNA_def_property(srna, "active_dupliweight", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "active_dupliweight", PROP_POINTER, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 517 Lines • Show Last 20 Lines | |||||