Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nla.c
| Show First 20 Lines • Show All 816 Lines • ▼ Show 20 Lines | RNA_def_property_update( | ||||
| prop, NC_ANIMATION | ND_NLA | NA_EDITED, "rna_NlaStrip_transform_update"); | prop, NC_ANIMATION | ND_NLA | NA_EDITED, "rna_NlaStrip_transform_update"); | ||||
| /* Action Reuse */ | /* Action Reuse */ | ||||
| prop = RNA_def_property(srna, "repeat", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "repeat", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "repeat"); | RNA_def_property_float_sdna(prop, NULL, "repeat"); | ||||
| RNA_def_property_float_funcs(prop, NULL, "rna_NlaStrip_repeat_set", NULL); | RNA_def_property_float_funcs(prop, NULL, "rna_NlaStrip_repeat_set", NULL); | ||||
| /* these limits have currently be chosen arbitrarily, but could be extended | /* these limits have currently be chosen arbitrarily, but could be extended | ||||
| * (minimum should still be > 0 though) if needed... */ | * (minimum should still be > 0 though) if needed... */ | ||||
| RNA_def_property_float_default(prop, 1.0); | |||||
| RNA_def_property_range(prop, 0.1f, 1000.0f); | RNA_def_property_range(prop, 0.1f, 1000.0f); | ||||
| RNA_def_property_ui_text(prop, "Repeat", "Number of times to repeat the action range"); | RNA_def_property_ui_text(prop, "Repeat", "Number of times to repeat the action range"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_ANIMATION | ND_NLA | NA_EDITED, "rna_NlaStrip_transform_update"); | prop, NC_ANIMATION | ND_NLA | NA_EDITED, "rna_NlaStrip_transform_update"); | ||||
| prop = RNA_def_property(srna, "scale", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "scale", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "scale"); | RNA_def_property_float_sdna(prop, NULL, "scale"); | ||||
| RNA_def_property_float_funcs(prop, NULL, "rna_NlaStrip_scale_set", NULL); | RNA_def_property_float_funcs(prop, NULL, "rna_NlaStrip_scale_set", NULL); | ||||
| /* these limits can be extended, but beyond this, we can get some crazy+annoying bugs | /* these limits can be extended, but beyond this, we can get some crazy+annoying bugs | ||||
| * due to numeric errors */ | * due to numeric errors */ | ||||
| RNA_def_property_float_default(prop, 1.0); | |||||
| RNA_def_property_range(prop, 0.0001f, 1000.0f); | RNA_def_property_range(prop, 0.0001f, 1000.0f); | ||||
| RNA_def_property_ui_text(prop, "Scale", "Scaling factor for action"); | RNA_def_property_ui_text(prop, "Scale", "Scaling factor for action"); | ||||
| RNA_def_property_update( | RNA_def_property_update( | ||||
| prop, NC_ANIMATION | ND_NLA | NA_EDITED, "rna_NlaStrip_transform_update"); | prop, NC_ANIMATION | ND_NLA | NA_EDITED, "rna_NlaStrip_transform_update"); | ||||
| /* Strip's F-Curves */ | /* Strip's F-Curves */ | ||||
| prop = RNA_def_property(srna, "fcurves", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "fcurves", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "fcurves", NULL); | RNA_def_property_collection_sdna(prop, NULL, "fcurves", NULL); | ||||
| ▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines | |||||