Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_preview.c
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| MEM_freeN(ip); | MEM_freeN(ip); | ||||
| } | } | ||||
| /** | /** | ||||
| * Check if \a id is supported by the automatic preview render. | * Check if \a id is supported by the automatic preview render. | ||||
| */ | */ | ||||
| bool ED_preview_id_is_supported(const ID *id) | bool ED_preview_id_is_supported(const ID *id) | ||||
| { | { | ||||
| if (id == NULL) { | |||||
| return false; | |||||
| } | |||||
| if (GS(id->name) == ID_OB) { | if (GS(id->name) == ID_OB) { | ||||
| return object_preview_is_type_supported((const Object *)id); | return object_preview_is_type_supported((const Object *)id); | ||||
| } | } | ||||
| return BKE_previewimg_id_get_p(id) != NULL; | return BKE_previewimg_id_get_p(id) != NULL; | ||||
| } | } | ||||
| void ED_preview_icon_render( | void ED_preview_icon_render( | ||||
| const bContext *C, Scene *scene, ID *id, uint *rect, int sizex, int sizey) | const bContext *C, Scene *scene, ID *id, uint *rect, int sizex, int sizey) | ||||
| ▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines | |||||