Documentation in header of SCNMorpher mentions wrong animataible key path

Originator:david.ronnqvist
Number:rdar://16080173 Date Originated:
Status:Closed Resolved:
Product:Documentation Product Version:
Classification: Reproducible:
 
Summary:
tl:dr; the animatable key path for SNCMorpher weights is "weights[index]" (plural), not "weight[index]" (singular)

-------

In the header for SCNMorpher, you can read that wieght has an animatable key which is "weight[index]". Quote below:

/*!
 @method setWeight:forTargetAtIndex:
 @abstract Sets the weight for the target at the specified index. Animatable implicitly or explicitly with the keyPath "weight[index]".
 */
- (void)setWeight:(CGFloat)weight forTargetAtIndex:(NSUInteger)targetIndex;

However, when you try to animate such a key path (in this example "weight[0]" you get an alert saying that it's not animatable, console output below:

[SCNKit ERROR] weight[0] is not an animatable path (from <SCNMorpher 0x6000000134b0>)

The real key path that works is "weights[0]". Note the extra "s" (weights instead of weight). The documentation should be updated with the correct key path.

Steps to Reproduce:
n/a

Expected Results:
n/a

Actual Results:
n/a

Regression:
n/a

Notes:
n/a

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!