Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/scene.c
| Show First 20 Lines • Show All 683 Lines • ▼ Show 20 Lines | Scene *BKE_scene_add(Main *bmain, const char *name) | ||||
| /* color management */ | /* color management */ | ||||
| colorspace_name = IMB_colormanagement_role_colorspace_name_get(COLOR_ROLE_DEFAULT_SEQUENCER); | colorspace_name = IMB_colormanagement_role_colorspace_name_get(COLOR_ROLE_DEFAULT_SEQUENCER); | ||||
| BKE_color_managed_display_settings_init(&sce->display_settings); | BKE_color_managed_display_settings_init(&sce->display_settings); | ||||
| BKE_color_managed_view_settings_init(&sce->view_settings); | BKE_color_managed_view_settings_init(&sce->view_settings); | ||||
| BLI_strncpy(sce->sequencer_colorspace_settings.name, colorspace_name, | BLI_strncpy(sce->sequencer_colorspace_settings.name, colorspace_name, | ||||
| sizeof(sce->sequencer_colorspace_settings.name)); | sizeof(sce->sequencer_colorspace_settings.name)); | ||||
| /* Safe Areas */ | |||||
| copy_v2_fl2(sce->safe_areas.title, 3.5f / 100.0f, 3.5f / 100.0f); | |||||
| copy_v2_fl2(sce->safe_areas.action, 10.0f / 100.0f, 5.0f / 100.0f); | |||||
| copy_v2_fl2(sce->safe_areas.title_center, 17.5f / 100.0f, 5.0f / 100.0f); | |||||
| copy_v2_fl2(sce->safe_areas.action_center, 15.0f / 100.0f, 5.0f / 100.0f); | |||||
dfelinto: use floats consistently (for example):
```
- copy_v2_fl2(sce->safe_areas.title, 3.5f / 100, 3. | |||||
| return sce; | return sce; | ||||
| } | } | ||||
| Base *BKE_scene_base_find(Scene *scene, Object *ob) | Base *BKE_scene_base_find(Scene *scene, Object *ob) | ||||
| { | { | ||||
| return BLI_findptr(&scene->base, ob, offsetof(Base, object)); | return BLI_findptr(&scene->base, ob, offsetof(Base, object)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,356 Lines • Show Last 20 Lines | |||||
use floats consistently (for example):