File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 3
3
#import " CPTAnimationOperation.h"
4
4
#import " CPTAnimationPeriod.h"
5
5
#import " CPTDefinitions.h"
6
+ #import " CPTPlotRange.h"
6
7
#import " _CPTAnimationTimingFunctions.h"
7
8
8
9
static const CGFloat kCPTAnimationFrameRate = CPTFloat(1.0 / 60.0 ); // 60 frames per second
@@ -406,6 +407,13 @@ -(void)updateOnMainThreadWithParameters:(nonnull CPTDictionary *)parameters
406
407
SetterType setterMethod = (SetterType)[boundObject methodForSelector: boundSetter];
407
408
setterMethod (boundObject, boundSetter, buffer);
408
409
}
410
+ else if ( [tweenedValue isKindOfClass: [CPTPlotRange class ]] ) {
411
+ CPTPlotRange *range = (CPTPlotRange *)tweenedValue;
412
+
413
+ typedef void (*RangeSetterType)(id , SEL , CPTPlotRange *);
414
+ RangeSetterType setterMethod = (RangeSetterType)[boundObject methodForSelector: boundSetter];
415
+ setterMethod (boundObject, boundSetter, range);
416
+ }
409
417
else {
410
418
// wrapped scalars and structs
411
419
NSValue *value = (NSValue *)tweenedValue;
You can’t perform that action at this time.
0 commit comments