Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_fcurve.c
| Show First 20 Lines • Show All 1,487 Lines • ▼ Show 20 Lines | static void rna_def_drivervar(BlenderRNA *brna) | ||||
| /* Targets */ | /* Targets */ | ||||
| /* TODO: for nicer api, only expose the relevant props via subclassing, | /* TODO: for nicer api, only expose the relevant props via subclassing, | ||||
| * instead of exposing the collection of targets */ | * instead of exposing the collection of targets */ | ||||
| prop = RNA_def_property(srna, "targets", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "targets", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "targets", "num_targets"); | RNA_def_property_collection_sdna(prop, NULL, "targets", "num_targets"); | ||||
| RNA_def_property_struct_type(prop, "DriverTarget"); | RNA_def_property_struct_type(prop, "DriverTarget"); | ||||
| RNA_def_property_ui_text(prop, "Targets", "Sources of input data for evaluating this variable"); | RNA_def_property_ui_text(prop, "Targets", "Sources of input data for evaluating this variable"); | ||||
| /* Boolean values */ | |||||
| prop = RNA_def_property(srna, "use_object", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", DVAR_FLAG_AS_OBJECT); | |||||
| RNA_def_property_ui_text(prop, "As Object", "XXX"); | |||||
| RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME | NA_SELECTED, NULL); | |||||
| } | } | ||||
| /* channeldriver.variables.* */ | /* channeldriver.variables.* */ | ||||
| static void rna_def_channeldriver_variables(BlenderRNA *brna, PropertyRNA *cprop) | static void rna_def_channeldriver_variables(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| /* PropertyRNA *prop; */ | /* PropertyRNA *prop; */ | ||||
| ▲ Show 20 Lines • Show All 482 Lines • Show Last 20 Lines | |||||