don't include fcurve modifiers when getting an actions frame range.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 2 Aug 2011 02:28:37 +0000 (02:28 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 2 Aug 2011 02:28:37 +0000 (02:28 +0000)
could too easily give a range of 600,000 which would make exporters hang.

source/blender/makesrna/intern/rna_action.c

index 7fdb96fda6e7f7eed05b58068af999158b9b49cd..cfedee3c6cdfc83fda3f4775862c56f99dba2692 100644 (file)
@@ -191,8 +191,9 @@ static void rna_Action_active_pose_marker_index_range(PointerRNA *ptr, int *min,
 
 
 static void rna_Action_frame_range_get(PointerRNA *ptr,float *values)
-{
-       calc_action_range(ptr->id.data, values, values+1, 1);
+{      /* don't include modifiers because they too easily can have very large
+        * ranges: MINAFRAMEF to MAXFRAMEF. */
+       calc_action_range(ptr->id.data, values, values+1, FALSE);
 }