Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/image.cc
| Show First 20 Lines • Show All 1,790 Lines • ▼ Show 20 Lines | static void stampdata( | ||||
| if (scene->r.stamp & R_STAMP_SCENE) { | if (scene->r.stamp & R_STAMP_SCENE) { | ||||
| SNPRINTF(stamp_data->scene, do_prefix ? "Scene %s" : "%s", scene->id.name + 2); | SNPRINTF(stamp_data->scene, do_prefix ? "Scene %s" : "%s", scene->id.name + 2); | ||||
| } | } | ||||
| else { | else { | ||||
| stamp_data->scene[0] = '\0'; | stamp_data->scene[0] = '\0'; | ||||
| } | } | ||||
| if (use_dynamic && scene->r.stamp & R_STAMP_SEQSTRIP) { | if (use_dynamic && scene->r.stamp & R_STAMP_SEQSTRIP) { | ||||
| /** FIXME: We need to have acces to the video_edit here to get the seqence. */ | |||||
| #if 0 | |||||
| const Sequence *seq = SEQ_get_topmost_sequence(scene, scene->r.cfra); | const Sequence *seq = SEQ_get_topmost_sequence(scene, scene->r.cfra); | ||||
| if (seq) { | if (seq) { | ||||
| STRNCPY(text, seq->name + 2); | STRNCPY(text, seq->name + 2); | ||||
| } | } | ||||
| else { | else { | ||||
| STRNCPY(text, "<none>"); | STRNCPY(text, "<none>"); | ||||
| } | } | ||||
| #endif | |||||
| SNPRINTF(stamp_data->strip, do_prefix ? "Strip %s" : "%s", text); | SNPRINTF(stamp_data->strip, do_prefix ? "Strip %s" : "%s", text); | ||||
| } | } | ||||
| else { | else { | ||||
| stamp_data->strip[0] = '\0'; | stamp_data->strip[0] = '\0'; | ||||
| } | } | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 3,639 Lines • ▼ Show 20 Lines | else if (ima->views_format == R_IMF_VIEWS_STEREO_3D) { | ||||
| return; | return; | ||||
| } | } | ||||
| else { | else { | ||||
| /* R_IMF_VIEWS_INDIVIDUAL */ | /* R_IMF_VIEWS_INDIVIDUAL */ | ||||
| char prefix[FILE_MAX] = {'\0'}; | char prefix[FILE_MAX] = {'\0'}; | ||||
| char *name = ima->filepath; | char *name = ima->filepath; | ||||
| const char *ext = nullptr; | const char *ext = nullptr; | ||||
| BKE_scene_multiview_view_prefix_get(scene, name, prefix, &ext); | BKE_scene_multiview_view_prefix_get(&scene->r, name, prefix, &ext); | ||||
| if (prefix[0] == '\0') { | if (prefix[0] == '\0') { | ||||
| BKE_image_free_views(ima); | BKE_image_free_views(ima); | ||||
| return; | return; | ||||
| } | } | ||||
| /* create all the image views */ | /* create all the image views */ | ||||
| for (srv = static_cast<SceneRenderView *>(scene->r.views.first); srv; srv = srv->next) { | for (srv = static_cast<SceneRenderView *>(scene->r.views.first); srv; srv = srv->next) { | ||||
| ▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines | |||||