Cleanup: use max frame define
This commit is contained in:
@@ -3260,13 +3260,13 @@ static void rna_def_particle_target(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "time", PROP_FLOAT, PROP_TIME);
|
||||
RNA_def_property_float_sdna(prop, NULL, "time");
|
||||
RNA_def_property_range(prop, 0.0, 30000.0f); /*TODO: replace 30000 with MAXFRAMEF when available in 2.5 */
|
||||
RNA_def_property_range(prop, 0.0, MAXFRAMEF);
|
||||
RNA_def_property_ui_text(prop, "Time", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Particle_target_redo");
|
||||
|
||||
prop = RNA_def_property(srna, "duration", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "duration");
|
||||
RNA_def_property_range(prop, 0.0, 30000.0f); /*TODO: replace 30000 with MAXFRAMEF when available in 2.5 */
|
||||
RNA_def_property_range(prop, 0.0, MAXFRAMEF);
|
||||
RNA_def_property_ui_text(prop, "Duration", "");
|
||||
RNA_def_property_update(prop, 0, "rna_Particle_target_redo");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user