Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_color.c
| Show First 20 Lines • Show All 684 Lines • ▼ Show 20 Lines | |||||
| #else | #else | ||||
| static void rna_def_curvemappoint(BlenderRNA *brna) | static void rna_def_curvemappoint(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static EnumPropertyItem prop_handle_type_items[] = { | static EnumPropertyItem prop_handle_type_items[] = { | ||||
| {0, "AUTO", 0, "Auto Handle", ""}, | {0, "AUTO", 0, "Auto Handle", ""}, | ||||
| {CUMA_VECTOR, "VECTOR", 0, "Vector Handle", ""}, | {CUMA_HANDLE_AUTO_ANIM, "AUTO_CLAMPED", 0, "Auto Clamped Handle", ""}, | ||||
| {CUMA_HANDLE_VECTOR, "VECTOR", 0, "Vector Handle", ""}, | |||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| srna = RNA_def_struct(brna, "CurveMapPoint", NULL); | srna = RNA_def_struct(brna, "CurveMapPoint", NULL); | ||||
| RNA_def_struct_ui_text(srna, "CurveMapPoint", "Point of a curve used for a curve mapping"); | RNA_def_struct_ui_text(srna, "CurveMapPoint", "Point of a curve used for a curve mapping"); | ||||
| prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ); | prop = RNA_def_property(srna, "location", PROP_FLOAT, PROP_XYZ); | ||||
| RNA_def_property_float_sdna(prop, NULL, "x"); | RNA_def_property_float_sdna(prop, NULL, "x"); | ||||
| ▲ Show 20 Lines • Show All 489 Lines • Show Last 20 Lines | |||||