Page MenuHome

T55008: Migrating RE-Collection data to Scene data
ClosedPublic

Authored by Jeroen Bakker (jbakker) on May 9 2018, 10:02 AM.

Details

Summary

in Scene DNA is available in scene.display New DNA Struct DisplayData
Added RNA (scene.display).

We already have scene.display_settings which contains non viewpoert
specific color management settings. I did not merge those two.

Patch should be in line with the ideas that @Brecht Van Lommel (brecht) wrote in T55008.

As I am not in detail aware of the decisions that have been made for the override feature I want a short review if it is in line with the plans.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D3290 (branched from blender2.8)
Build Status
Buildable 1510
Build 1510: arc lint + arc unit

Event Timeline

Brecht Van Lommel (brecht) requested changes to this revision.May 9 2018, 10:19 AM

I don't think these random color settings should be in the scene. They could be a 3D view theme option perhaps, but I'm not sure we need them at all?

release/scripts/startup/bl_ui/properties_render.py
746–747

I think this belongs in the Scene tab rather than the Render tab.

source/blender/editors/space_view3d/space_view3d.c
1092–1094

You can subscribe to the entire struct, individual properties seem unnecessary in this case.

source/blender/makesdna/DNA_scene_types.h
1358

Call this SceneDisplay, so it's clear this is for the scene, DisplayData is too generic.

This revision now requires changes to proceed.May 9 2018, 10:19 AM
  • D3290: updated the versioning code
Jeroen Bakker (jbakker) marked 3 inline comments as done.May 9 2018, 12:51 PM

@Brecht Van Lommel (brecht) I solved your comments. I also removed the random_color_* properties. I used them to determine defaults but that is not needed anymore.

  • Merge branch 'blender2.8' into arcpatch-D3290
  • D3290: resolved review comments
  • D3290: Missed renaming in comment
This revision is now accepted and ready to land.May 9 2018, 1:00 PM
source/blender/makesrna/intern/rna_scene.c
5649

This function could be renamed still.

5657

"Scene Display", "Scene display settings for the 3d viewport"

6149

"Scene Display", "Scene display settings for the 3d viewport"

Jeroen Bakker (jbakker) marked 3 inline comments as done.
  • D3290: solved RNA comments
This revision was automatically updated to reflect the committed changes.