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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user