Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object_force.c
| Show First 20 Lines • Show All 1,958 Lines • ▼ Show 20 Lines | static void rna_def_softbody(BlenderRNA *brna) | ||||
| RNA_def_property_range(prop, 0.0f, 50.0f); | RNA_def_property_range(prop, 0.0f, 50.0f); | ||||
| RNA_def_property_ui_text(prop, "Damp", "Edge spring friction"); | RNA_def_property_ui_text(prop, "Damp", "Edge spring friction"); | ||||
| RNA_def_property_update(prop, 0, "rna_softbody_update"); | RNA_def_property_update(prop, 0, "rna_softbody_update"); | ||||
| prop = RNA_def_property(srna, "spring_length", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "spring_length", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "springpreload"); | RNA_def_property_int_sdna(prop, NULL, "springpreload"); | ||||
| RNA_def_property_range(prop, 0.0f, 200.0f); | RNA_def_property_range(prop, 0.0f, 200.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "View Layer", "Alter spring length to shrink/blow up (unit %) 0 to disable"); | prop, "Spring Length", "Alter spring length to shrink/blow up (unit %) 0 to disable"); | ||||
pioverfour: This is a copy/paste error, the prop has nothing to do with the view layer. | |||||
| RNA_def_property_update(prop, 0, "rna_softbody_update"); | RNA_def_property_update(prop, 0, "rna_softbody_update"); | ||||
| prop = RNA_def_property(srna, "aero", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "aero", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "aeroedge"); | RNA_def_property_int_sdna(prop, NULL, "aeroedge"); | ||||
| RNA_def_property_range(prop, 0.0f, 30000.0f); | RNA_def_property_range(prop, 0.0f, 30000.0f); | ||||
| RNA_def_property_ui_text(prop, "Aero", "Make edges 'sail'"); | RNA_def_property_ui_text(prop, "Aero", "Make edges 'sail'"); | ||||
| RNA_def_property_update(prop, 0, "rna_softbody_update"); | RNA_def_property_update(prop, 0, "rna_softbody_update"); | ||||
| Show All 35 Lines | static void rna_def_softbody(BlenderRNA *brna) | ||||
| RNA_def_property_range(prop, -10.0f, 10.0f); | RNA_def_property_range(prop, -10.0f, 10.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Ball Size", "Absolute ball size or factor if not manually adjusted"); | prop, "Ball Size", "Absolute ball size or factor if not manually adjusted"); | ||||
| RNA_def_property_update(prop, 0, "rna_softbody_update"); | RNA_def_property_update(prop, 0, "rna_softbody_update"); | ||||
| prop = RNA_def_property(srna, "ball_stiff", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "ball_stiff", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "ballstiff"); | RNA_def_property_float_sdna(prop, NULL, "ballstiff"); | ||||
| RNA_def_property_range(prop, 0.001f, 100.0f); | RNA_def_property_range(prop, 0.001f, 100.0f); | ||||
| RNA_def_property_ui_text(prop, "Ball Size", "Ball inflating pressure"); | RNA_def_property_ui_text(prop, "Stiffness", "Ball inflating pressure"); | ||||
Done Inline ActionsCopy/paste error. pioverfour: Copy/paste error. | |||||
| RNA_def_property_update(prop, 0, "rna_softbody_update"); | RNA_def_property_update(prop, 0, "rna_softbody_update"); | ||||
| prop = RNA_def_property(srna, "ball_damp", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "ball_damp", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "balldamp"); | RNA_def_property_float_sdna(prop, NULL, "balldamp"); | ||||
| RNA_def_property_range(prop, 0.001f, 1.0f); | RNA_def_property_range(prop, 0.001f, 1.0f); | ||||
| RNA_def_property_ui_text(prop, "Ball Size", "Blending to inelastic collision"); | RNA_def_property_ui_text(prop, "Dampening", "Blending to inelastic collision"); | ||||
Done Inline ActionsCopy/paste error pioverfour: Copy/paste error | |||||
Done Inline ActionsI can't believe these copy & paste mistakes have lasted for so long! HooglyBoogly: I can't believe these copy & paste mistakes have lasted for so long! | |||||
| RNA_def_property_update(prop, 0, "rna_softbody_update"); | RNA_def_property_update(prop, 0, "rna_softbody_update"); | ||||
| /* Solver */ | /* Solver */ | ||||
| prop = RNA_def_property(srna, "error_threshold", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "error_threshold", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "rklimit"); | RNA_def_property_float_sdna(prop, NULL, "rklimit"); | ||||
| RNA_def_property_range(prop, 0.001f, 10.0f); | RNA_def_property_range(prop, 0.001f, 10.0f); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| ▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines | |||||
This is a copy/paste error, the prop has nothing to do with the view layer.