Blender Git Loki

Git Commits -> Revision 006c66b

Revision 006c66b by Sergey Sharybin (master)
January 29, 2018, 16:53 (GMT)
Refactor object engine data storage

Main idea is to make specific engine types be a subclass of generic
ObjectEngineData structure.

This required following changes:

- Have extra size argument to engine data allocation function.

Not sure whether there is less error-prone way of doing this.

- Add init() callback to engine data allocation function.

Additionally, added some extra checks to Eevee's engine data getters, so we do
not silently cast lamp data to lightprobe data.

Reviewers: dfelinto, fclem

Differential Revision: https://developer.blender.org/D3027

Commit Details:

Full Hash: 006c66b1ff5972c5badff7a7f53f638e27e24cd4
Parent Commit: d174f3b
Lines Changed: +127, -73

7 Modified Paths:

/source/blender/blenkernel/intern/object.c (+2, -5) (Diff)
/source/blender/draw/engines/eevee/eevee_data.c (+59, -32) (Diff)
/source/blender/draw/engines/eevee/eevee_private.h (+6, -0) (Diff)
/source/blender/draw/intern/draw_manager.c (+22, -15) (Diff)
/source/blender/draw/intern/DRW_render.h (+7, -3) (Diff)
/source/blender/draw/modes/object_mode.c (+23, -16) (Diff)
/source/blender/makesdna/DNA_object_types.h (+8, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021