<Smart cast 'Loop' is impossible, because 'loop' i...
# forum
r
Smart cast 'Loop' is impossible, because 'loop' is a property that has open or custom getter abstract class Envelope { abstract val propertyType: PropertyType abstract val envelopeExpression: String abstract val loop: Loop? /** * Returns the envelope's value for a certain frame t. * @param t The frame index. If loop is not set to null, the loop index will be calculated and used instead of t. */ fun getValueAt(t: Int): Double { var index = t if (loop != null) index = 5 % loop.duration return...