Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_preview.c
| Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | |||||
| #ifndef NDEBUG | #ifndef NDEBUG | ||||
| /* Used for database init assert(). */ | /* Used for database init assert(). */ | ||||
| # include "BLI_threads.h" | # include "BLI_threads.h" | ||||
| #endif | #endif | ||||
| ImBuf *get_brush_icon(Brush *brush) | ImBuf *get_brush_icon(Brush *brush) | ||||
| { | { | ||||
| static const int flags = IB_rect | IB_multilayer | IB_metadata; | static const eImBufFlags flags = IB_rect | IB_multilayer | IB_metadata; | ||||
| char path[FILE_MAX]; | char path[FILE_MAX]; | ||||
| const char *folder; | const char *folder; | ||||
| if (!(brush->icon_imbuf)) { | if (!(brush->icon_imbuf)) { | ||||
| if (brush->flag & BRUSH_CUSTOM_ICON) { | if (brush->flag & BRUSH_CUSTOM_ICON) { | ||||
| if (brush->icon_filepath[0]) { | if (brush->icon_filepath[0]) { | ||||
| ▲ Show 20 Lines • Show All 1,385 Lines • Show Last 20 Lines | |||||