Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_particle.c
| Show First 20 Lines • Show All 3,492 Lines • ▼ Show 20 Lines | |||||
| RNA_def_property_struct_type(prop, "SPHFluidSettings"); | RNA_def_property_struct_type(prop, "SPHFluidSettings"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "SPH Fluid Settings", ""); | RNA_def_property_ui_text(prop, "SPH Fluid Settings", ""); | ||||
| /* Effector weights */ | /* Effector weights */ | ||||
| prop = RNA_def_property(srna, "effector_weights", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "effector_weights", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "EffectorWeights"); | RNA_def_property_struct_type(prop, "EffectorWeights"); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | |||||
| RNA_def_property_ui_text(prop, "Effector Weights", ""); | RNA_def_property_ui_text(prop, "Effector Weights", ""); | ||||
| /* animation here? */ | /* animation here? */ | ||||
| rna_def_animdata_common(srna); | rna_def_animdata_common(srna); | ||||
| prop = RNA_def_property(srna, "force_field_1", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "force_field_1", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "pd"); | RNA_def_property_pointer_sdna(prop, NULL, "pd"); | ||||
| RNA_def_property_struct_type(prop, "FieldSettings"); | RNA_def_property_struct_type(prop, "FieldSettings"); | ||||
| RNA_def_property_pointer_funcs(prop, "rna_Particle_field1_get", NULL, NULL, NULL); | RNA_def_property_pointer_funcs(prop, "rna_Particle_field1_get", NULL, NULL, NULL); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | |||||
| RNA_def_property_ui_text(prop, "Force Field 1", ""); | RNA_def_property_ui_text(prop, "Force Field 1", ""); | ||||
| prop = RNA_def_property(srna, "force_field_2", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "force_field_2", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "pd2"); | RNA_def_property_pointer_sdna(prop, NULL, "pd2"); | ||||
| RNA_def_property_struct_type(prop, "FieldSettings"); | RNA_def_property_struct_type(prop, "FieldSettings"); | ||||
| RNA_def_property_pointer_funcs(prop, "rna_Particle_field2_get", NULL, NULL, NULL); | RNA_def_property_pointer_funcs(prop, "rna_Particle_field2_get", NULL, NULL, NULL); | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | |||||
| RNA_def_property_ui_text(prop, "Force Field 2", ""); | RNA_def_property_ui_text(prop, "Force Field 2", ""); | ||||
| /* twist */ | /* twist */ | ||||
| prop = RNA_def_property(srna, "twist", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "twist", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_range(prop, -100000.0f, 100000.0f); | RNA_def_property_range(prop, -100000.0f, 100000.0f); | ||||
| RNA_def_property_ui_range(prop, -10.0f, 10.0f, 0.1, 3); | RNA_def_property_ui_range(prop, -10.0f, 10.0f, 0.1, 3); | ||||
| RNA_def_property_ui_text(prop, "Twist", "Number of turns around parent along the strand"); | RNA_def_property_ui_text(prop, "Twist", "Number of turns around parent along the strand"); | ||||
| RNA_def_property_update(prop, 0, "rna_Particle_redo_child"); | RNA_def_property_update(prop, 0, "rna_Particle_redo_child"); | ||||
| ▲ Show 20 Lines • Show All 533 Lines • Show Last 20 Lines | |||||