Blender Git Loki

Git Commits -> Revision 3bc09c1

Revision 3bc09c1 by Sybren A. Stüvel (master)
August 21, 2020, 10:23 (GMT)
Cleanup: split `BKE_scene_get_depsgraph()` into two functions

Split the depsgraph allocation into a separate function
`BKE_scene_ensure_depsgraph()`. Parameters are only passed to those
functions that actually need them. This removes the the "if that boolean
is `false` this pointer is allowed to be `NULL`" logic and more cleanly
decouples code.

No functional changes.

Commit Details:

Full Hash: 3bc09c1c1ec9c1699ac872bc643d3e38c250803f
Parent Commit: e7767ba
Lines Changed: +63, -50

20 Modified Paths:

/source/blender/blenkernel/BKE_scene.h (+6, -4) (Diff)
/source/blender/blenkernel/intern/context.c (+2, -3) (Diff)
/source/blender/blenkernel/intern/scene.c (+35, -19) (Diff)
/source/blender/blenkernel/intern/sequencer.c (+1, -1) (Diff)
/source/blender/draw/intern/draw_manager.c (+1, -1) (Diff)
/source/blender/editors/render/render_update.c (+1, -1) (Diff)
/source/blender/editors/scene/scene_edit.c (+1, -1) (Diff)
/source/blender/editors/screen/screen_ops.c (+1, -1) (Diff)
/source/blender/editors/space_info/info_stats.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_convert_object.c (+2, -2) (Diff)
/source/blender/io/collada/BlenderContext.cpp (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_layer.c (+2, -5) (Diff)
/source/blender/makesrna/intern/rna_scene_api.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space_api.c (+1, -1) (Diff)
/source/blender/python/gpu/gpu_py_offscreen.c (+1, -1) (Diff)
/source/blender/render/intern/source/pipeline.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_draw.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+2, -3) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+1, -1) (Diff)
/source/blender/windowmanager/xr/intern/wm_xr_session.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021