Layers: use IDProperty and override collection properties system

First this replace a custom data struct with IDProperty, and use
IDProperty group merge and copying functions. Which means that a collection
property setting is only created if necessary.

This implements the "Layer Collection settings" override system, as
suggested in the "Override Manifesto" document.

The core is working, with Scene, LayerCollection and Object using a
single IDProperty to store all the render settings data. Next step is to
migrate this to depsgraph.

Note: Clay engine "ssao_samples" was hardcoded to 32 for now. It will come
back as part of "Workspace Settings" later.

Many thanks for Bastien Montagne for the help with the UI template
nightmare ;)

Differential Revision: https://developer.blender.org/D2563
This commit is contained in:
Dalai Felinto
2017-03-30 17:01:23 +02:00
parent 98e69631b0
commit ce3c7e8ff5
34 changed files with 666 additions and 1485 deletions

View File

@@ -249,10 +249,6 @@ struct DefaultTextureList *DRW_viewport_texture_list_get(void);
/* Settings */
bool DRW_is_object_renderable(struct Object *ob);
#ifndef __DRW_ENGINE_H__
void *DRW_material_settings_get(Material *ma, const char *engine_name);
void *DRW_render_settings_get(Scene *scene, const char *engine_name);
#endif /* __DRW_ENGINE_H__ */
/* Draw commands */
void DRW_draw_pass(DRWPass *pass);