Remove selection color from the base

Use indirect access to it via object.

It was already flushing from base to object, now we can avoid such flushing.

Still weird to have selection color filled in by dependency graph, but now
there is no synchronization going on at least.
This commit is contained in:
2017-06-07 17:35:23 +02:00
parent d675415eef
commit 23c93873f4
11 changed files with 26 additions and 27 deletions

View File

@@ -81,12 +81,12 @@ void DepsgraphNodeBuilder::build_scene(Main *bmain, Scene *scene)
}
/* scene objects */
int selection_color = 1;
int select_color = 1;
for (SceneLayer *sl = (SceneLayer *)scene->render_layers.first; sl; sl = sl->next) {
for (Base *base = (Base *)sl->object_bases.first; base; base = base->next) {
/* object itself */
build_object(scene, base->object);
base->selcol = selection_color++;
base->object->select_color = select_color++;
}
}