Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 751 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| Scene *scene = (Scene *)ptr->data; | Scene *scene = (Scene *)ptr->data; | ||||
| return (int)(log(scene->layact) / M_LN2); | return (int)(log(scene->layact) / M_LN2); | ||||
| } | } | ||||
| static void rna_Scene_view3d_update(Main *bmain, Scene *UNUSED(scene_unused), PointerRNA *ptr) | static void rna_Scene_view3d_update(Main *bmain, Scene *UNUSED(scene_unused), PointerRNA *ptr) | ||||
| { | { | ||||
| wmWindowManager *wm = bmain->wm.first; | |||||
| Scene *scene = (Scene *)ptr->data; | Scene *scene = (Scene *)ptr->data; | ||||
| BKE_screen_view3d_main_sync(&bmain->screen, scene); | WM_windows_scene_data_sync(&wm->windows, scene); | ||||
| } | } | ||||
| static void rna_Scene_layer_update(Main *bmain, Scene *scene, PointerRNA *ptr) | static void rna_Scene_layer_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| rna_Scene_view3d_update(bmain, scene, ptr); | |||||
| /* XXX We would need do_time=true here, else we can have update issues like [#36289]... | /* XXX We would need do_time=true here, else we can have update issues like [#36289]... | ||||
| * However, this has too much drawbacks (like slower layer switch, undesired updates...). | * However, this has too much drawbacks (like slower layer switch, undesired updates...). | ||||
| * That's TODO for future DAG updates. | * That's TODO for future DAG updates. | ||||
| */ | */ | ||||
| DAG_on_visible_update(bmain, false); | DAG_on_visible_update(bmain, false); | ||||
| /* No need to sync scene data here (WM_windows_scene_data_sync), handled through notifier. */ | |||||
| } | } | ||||
| static void rna_Scene_fps_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr)) | static void rna_Scene_fps_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| BKE_sound_update_fps(scene); | BKE_sound_update_fps(scene); | ||||
| BKE_sequencer_update_sound_bounds_all(scene); | BKE_sequencer_update_sound_bounds_all(scene); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 8,012 Lines • Show Last 20 Lines | |||||