Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_smoke.c
| Context not available. | |||||
| RNA_def_property_ui_text(prop, "Strength", "Strength of noise"); | RNA_def_property_ui_text(prop, "Strength", "Strength of noise"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_resetCache"); | RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_resetCache"); | ||||
| prop = RNA_def_property(srna, "dissolve_speed", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "dissolve_speed", PROP_INT, PROP_TIME); | ||||
| RNA_def_property_int_sdna(prop, NULL, "diss_speed"); | RNA_def_property_int_sdna(prop, NULL, "diss_speed"); | ||||
| RNA_def_property_range(prop, 1.0, 10000.0); | RNA_def_property_range(prop, 1.0, 10000.0); | ||||
| RNA_def_property_ui_range(prop, 1.0, 10000.0, 1, -1); | RNA_def_property_ui_range(prop, 1.0, 10000.0, 1, -1); | ||||
| Context not available. | |||||
| RNA_def_property_ui_text(prop, "Position", "Position of the slice"); | RNA_def_property_ui_text(prop, "Position", "Position of the slice"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, NULL); | ||||
| prop = RNA_def_property(srna, "display_thickness", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "display_thickness", PROP_FLOAT, PROP_UNIT_LENGTH); | ||||
JacquesLucke: I don't understand why this thickness is a length. Shouldn't it be more like a density? | |||||
Done Inline ActionsWhat do you propose it should be? Thought of using PROP_VOLUME, but this seemed more suitable. padthai: What do you propose it should be? Thought of using PROP_VOLUME, but this seemed more suitable. | |||||
| RNA_def_property_float_sdna(prop, NULL, "display_thickness"); | RNA_def_property_float_sdna(prop, NULL, "display_thickness"); | ||||
| RNA_def_property_range(prop, 0.001, 1000.0); | RNA_def_property_range(prop, 0.001, 1000.0); | ||||
| RNA_def_property_ui_range(prop, 0.1, 100.0, 0.1, 3); | RNA_def_property_ui_range(prop, 0.1, 100.0, 0.1, 3); | ||||
| Context not available. | |||||
I don't understand why this thickness is a length. Shouldn't it be more like a density?