Inaccuracy in 'Info' editor #61525

Open
opened 2019-02-14 03:49:30 +01:00 by Sam Van Hulle · 7 comments

This bug is difficult to describe specifically, since I have no idea of all of the affected properties. All I noticed is that some are reported inaccurately (i.e. the reported rna path does not exist or does not point to the changed property).

A few I found are on the View Layer tab in the Properties editor:
bpy.context.scene.view_layers- [x].cycles.denoising_store_passes is reported as bpy.context.scene.denoising_store_passes
bpy.context.scene.view_layers- [x].cycles.pass_debug_render_time is reported as bpy.context.scene.pass_debug_render_time
bpy.context.scene.view_layers- [x].cycles.use_pass_volume_direct is reported as bpy.context.scene.use_pass_volume_direct
bpy.context.scene.view_layers- [x].cycles.use_pass_volume_indirect is reported as bpy.context.scene.use_pass_volume_indirect
Plus all of the Cryptomatte and Denoising properties.

I have no idea how the Info editor receives this information, but it looks as if the message is partially hard-coded and not up to date?

This bug is difficult to describe specifically, since I have no idea of *all* of the affected properties. All I noticed is that *some* are reported inaccurately (i.e. the reported rna path does not exist or does not point to the changed property). A few I found are on the View Layer tab in the Properties editor: `bpy.context.scene.view_layers- [x].cycles.denoising_store_passes` is reported as `bpy.context.scene.denoising_store_passes` `bpy.context.scene.view_layers- [x].cycles.pass_debug_render_time` is reported as `bpy.context.scene.pass_debug_render_time` `bpy.context.scene.view_layers- [x].cycles.use_pass_volume_direct` is reported as `bpy.context.scene.use_pass_volume_direct` `bpy.context.scene.view_layers- [x].cycles.use_pass_volume_indirect` is reported as `bpy.context.scene.use_pass_volume_indirect` Plus all of the Cryptomatte and Denoising properties. I have no idea how the Info editor receives this information, but it looks as if the message is partially hard-coded and not up to date?
Author

Added subscriber: @frameshift

Added subscriber: @frameshift

#62610 was marked as duplicate of this issue

#62610 was marked as duplicate of this issue
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2019-02-14 11:12:28 +01:00
Member

Can confirm, there are a couple of these, will have a look...

Can confirm, there are a couple of these, will have a look...
Philipp Oeser removed their assignment 2019-02-15 15:29:57 +01:00
Campbell Barton was assigned by Philipp Oeser 2019-02-15 15:29:57 +01:00
Member

Added subscribers: @mont29, @ideasman42, @brecht

Added subscribers: @mont29, @ideasman42, @brecht
Member

This path resolution seems to fail if a PointerProperty with a PropertyGroup is defined on anything else than a real ID.

So in the case of cycles, it defines a couple of these [search for .cycles = PointerProperty(]
It is fine for Scene, Camera, Material, Light, World, Mesh, Curve, MetaBall, Object, but it fails for ViewLayer

We then get into trouble resolving the path in RNA_path_from_ID_to_struct / rna_path_from_ID_to_idpgroup
When trying to find the needle in the haystack, the haystack will only consist of IDProps of the Scene
haystack = RNA_struct_idprops(&id_ptr, false);
(so it wont look in Viewlayer)

Instead the haystack should probably go over Scenes properties recursively?
Also not sure if the property defined in BPy_PointerProperty should have ->nested applied somehow in case parent is not a real ID?

Maybe I could dive deeper, but before doing so, I would like to get some feedback from @ideasman42 , @brecht or @mont29 if I am on the right track here...
(will also assign to @ideasman42 since he wrote the original haystack thingie...)

This path resolution seems to fail if a `PointerProperty` with a PropertyGroup is defined on anything else than a real ID. So in the case of cycles, it defines a couple of these [search for `.cycles = PointerProperty(`] It is fine for `Scene`, `Camera`, `Material`, `Light`, `World`, `Mesh`, `Curve`, `MetaBall`, `Object`, **but it fails for** `ViewLayer` We then get into trouble resolving the path in `RNA_path_from_ID_to_struct` / `rna_path_from_ID_to_idpgroup` When trying to find the needle in the haystack, the haystack will only consist of IDProps of the `Scene` `haystack = RNA_struct_idprops(&id_ptr, false);` (so it wont look in `Viewlayer`) Instead the haystack should probably go over Scenes properties recursively? Also not sure if the property defined in `BPy_PointerProperty` should have `->nested` applied somehow in case parent is not a real ID? Maybe I could dive deeper, but before doing so, I would like to get some feedback from @ideasman42 , @brecht or @mont29 if I am on the right track here... (will also assign to @ideasman42 since he wrote the original haystack thingie...)
Member

Added subscribers: @HenriHebeisen, @JacquesLucke

Added subscribers: @HenriHebeisen, @JacquesLucke
Campbell Barton was unassigned by Dalai Felinto 2019-12-23 16:35:10 +01:00
Philipp Oeser removed the
Interest
Python API
label 2023-02-10 09:04:46 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#61525
No description provided.