Fix #135217: ColorManage Settings RNA paths incomplete/wrong

`ColorManagedDisplaySettings`, `ColorManagedViewSettings`,
`ColorManagedInputColorspaceSettings` were affected since these are used
from multiple places (Scene, File output nodes, ..).

Similar to how we are getting the path for `ImageFormatSettings` (which
pretty much has the distinction logic already), we can do so for the
ColorManage Settings as well (piggbacking on the already correct path to
the `ImageFormatSettings`.

With this, we can also remove these "known failures" from the test
introduced in 4032b853c3.

Pull Request: https://projects.blender.org/blender/blender/pulls/135238
This commit is contained in:
Philipp Oeser
2025-02-28 17:13:43 +01:00
committed by Philipp Oeser
parent 559d7575a6
commit 9855c11d2c
4 changed files with 55 additions and 36 deletions

View File

@@ -10,13 +10,8 @@ import unittest
def process_rna_struct(self, struct, rna_path):
# These paths are currently known failures of `path_from_id`.
KNOWN_FAILURES = {
"view_settings",
"display_settings",
"colorspace_settings",
"render.views[\"left\"]",
"render.views[\"right\"]",
"display_settings",
"colorspace_settings",
"uv_layers[\"UVMap\"]",
"uv_layers[\"UVMap\"]",
}