Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_color.c
| Show First 20 Lines • Show All 502 Lines • ▼ Show 20 Lines | static void rna_ColorManagedViewSettings_look_set(PointerRNA *ptr, int value) | ||||
| const char *name = IMB_colormanagement_look_get_indexed_name(value); | const char *name = IMB_colormanagement_look_get_indexed_name(value); | ||||
| if (name) { | if (name) { | ||||
| BLI_strncpy(view->look, name, sizeof(view->look)); | BLI_strncpy(view->look, name, sizeof(view->look)); | ||||
| } | } | ||||
| } | } | ||||
| static EnumPropertyItem *rna_ColorManagedViewSettings_look_itemf( | static EnumPropertyItem *rna_ColorManagedViewSettings_look_itemf( | ||||
| bContext *UNUSED(C), PointerRNA *UNUSED(ptr), PropertyRNA *UNUSED(prop), bool *r_free) | bContext *UNUSED(C), PointerRNA *ptr, PropertyRNA *UNUSED(prop), bool *r_free) | ||||
| { | { | ||||
| ColorManagedViewSettings *view = (ColorManagedViewSettings *) ptr->data; | |||||
| EnumPropertyItem *items = NULL; | EnumPropertyItem *items = NULL; | ||||
| int totitem = 0; | int totitem = 0; | ||||
| IMB_colormanagement_look_items_add(&items, &totitem); | IMB_colormanagement_look_items_add(&items, &totitem, view->view_transform); | ||||
| RNA_enum_item_end(&items, &totitem); | RNA_enum_item_end(&items, &totitem); | ||||
| *r_free = true; | *r_free = true; | ||||
| return items; | return items; | ||||
| } | } | ||||
| static void rna_ColorManagedViewSettings_use_curves_set(PointerRNA *ptr, int value) | static void rna_ColorManagedViewSettings_use_curves_set(PointerRNA *ptr, int value) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 670 Lines • Show Last 20 Lines | |||||