[Bf-blender-cvs] [f027cbeeb9c] master: Cleanup: use max frame define

Campbell Barton noreply at git.blender.org
Wed Jan 16 01:17:37 CET 2019


Commit: f027cbeeb9cca4fe241bd5c4688d9ceec937840c
Author: Campbell Barton
Date:   Wed Jan 16 11:09:51 2019 +1100
Branches: master
https://developer.blender.org/rBf027cbeeb9cca4fe241bd5c4688d9ceec937840c

Cleanup: use max frame define

===================================================================

M	source/blender/makesrna/intern/rna_particle.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c
index 61707fa4670..6850285057e 100644
--- a/source/blender/makesrna/intern/rna_particle.c
+++ b/source/blender/makesrna/intern/rna_particle.c
@@ -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");



More information about the Bf-blender-cvs mailing list