Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_fcurve.c
| Show First 20 Lines • Show All 803 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| FModifier *fcm = (FModifier *)ptr->data; | FModifier *fcm = (FModifier *)ptr->data; | ||||
| FMod_Generator *gen = fcm->data; | FMod_Generator *gen = fcm->data; | ||||
| if (gen) { | if (gen) { | ||||
| length[0] = gen->arraysize; | length[0] = gen->arraysize; | ||||
| } | } | ||||
| else { | else { | ||||
| length[0] = 100; /* for raw_access, untested */ | length[0] = 0; | ||||
| } | } | ||||
| return length[0]; | return length[0]; | ||||
| } | } | ||||
| static void rna_FModifierGenerator_coefficients_get(PointerRNA *ptr, float *values) | static void rna_FModifierGenerator_coefficients_get(PointerRNA *ptr, float *values) | ||||
| { | { | ||||
| FModifier *fcm = (FModifier *)ptr->data; | FModifier *fcm = (FModifier *)ptr->data; | ||||
| ▲ Show 20 Lines • Show All 1,696 Lines • Show Last 20 Lines | |||||