Render Baking From Quick Favourite Menu will not use current pass type [instead stores the one it was added with] #73167

Closed
opened 2020-01-16 18:08:13 +01:00 by Lautaro Iglesias · 10 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.71

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: f1aa4d18d4
Worked: (optional)

Short description of error
If you add the bake button to the quick favorite menu it will only bake the passes you had selected when you added the button despite the passes you have selected at the moment.

Exact steps for others to reproduce the error
Add the bake button to quick favorite with the "bake type" in Combined.
Captura.JPG

Now change the "bake type" to Normal.
Captura.JPG

Go to the viewport and press Q, Bake.
Captura.JPG

The baking result will be Combined, not Normal as spected.

Bake_Bug.blend

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.71 **Blender Version** Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: `f1aa4d18d4` Worked: (optional) **Short description of error** If you add the bake button to the quick favorite menu it will only bake the passes you had selected when you added the button despite the passes you have selected at the moment. **Exact steps for others to reproduce the error** Add the bake button to quick favorite with the "bake type" in Combined. ![Captura.JPG](https://archive.blender.org/developer/F8281729/Captura.JPG) Now change the "bake type" to Normal. ![Captura.JPG](https://archive.blender.org/developer/F8281738/Captura.JPG) Go to the viewport and press Q, Bake. ![Captura.JPG](https://archive.blender.org/developer/F8281748/Captura.JPG) The baking result will be Combined, not Normal as spected. [Bake_Bug.blend](https://archive.blender.org/developer/F8281756/Bake_Bug.blend)

Added subscriber: @LautaroIglesias

Added subscriber: @LautaroIglesias
Member

Added subscribers: @dfelinto, @lichtwerk

Added subscribers: @dfelinto, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Pretty sure this would not be considered a bug.
It might be a bit inconvenient though (in some situations this can be convenient even).


Bit of a detour here (more of a dev-question in the direction of @dfelinto):
The way this operator works,

  • it is either executed with the pass_type property set [the UI does this, Quick Favorites stores this with the property, true]
  • or you run it without this property set [then it will always be the default for this property: SCE_PASS_COMBINED]

Now all the other properties of this operator are picked up later by the operator "dynamically" [margin etc... basically what you set in the UI -- codewise: read from BakeData in bake_set_props]
I guess we could do the same for pass_type in the UI:

  • not call layout.operator("object.bake", icon='RENDER_STILL').type = cscene.bake_type
  • instead call layout.operator("object.bake", icon='RENDER_STILL') without the type
  • pick up the the pass_type later, so it will also take what is set in the UI without having to call it with the type explicitly
  • Problem here is that pass_type is part of the RenderEngine, not BakeData, @dfelinto: is there a reason for this?

Leaving that aside, happy to hear the opinions of the UI mafia.

Pretty sure this would not be considered a bug. It might be a bit inconvenient though (in some situations this can be convenient even). ---- Bit of a detour here (more of a dev-question in the direction of @dfelinto): The way this operator works, - it is either executed with the `pass_type` property set [the UI does this, Quick Favorites stores this with the property, true] - or you run it without this property set [then it will **always** be the default for this property: `SCE_PASS_COMBINED`] Now all the other properties of this operator are picked up later by the operator "dynamically" [`margin` etc... basically what you set in the UI -- codewise: read from `BakeData` in `bake_set_props`] I guess we could do the same for `pass_type` in the UI: - **not** call layout.operator("object.bake", icon='RENDER_STILL').type = cscene.bake_type - **instead** call layout.operator("object.bake", icon='RENDER_STILL') without the type - pick up the the `pass_type` later, so it will also take what is set in the UI without having to call it with the type explicitly - Problem here is that `pass_type` is part of the `RenderEngine`, not `BakeData`, @dfelinto: is there a reason for this? ---- Leaving that aside, happy to hear the opinions of the UI mafia.
Philipp Oeser changed title from Error at Baking From Quick Favourite Menu to Render Baking From Quick Favourite Menu will not use current pass type [instead stores the one it was added with] 2020-01-16 20:08:45 +01:00

Added subscriber: @JoaquinKierbel

Added subscriber: @JoaquinKierbel

If we're going to let this pass as a "feature, not a bug", then the Quick Save label should say "Bake (Combined)", or "Bake (Normal)" according to which baking pass the button stored when saved. If it shows just "Bake" as it does, it's a bug, given that you're suppose to be just quick-saving the "Bake" button alone, and that should bake whatever it's selected for its pass at the given moment.

If we're going to let this pass as a "feature, not a bug", then the Quick Save label should say "Bake (Combined)", or "Bake (Normal)" according to which baking pass the button stored when saved. If it shows just "Bake" as it does, it's a bug, given that you're suppose to be just quick-saving the "Bake" button alone, and that should bake whatever it's selected for its pass at the given moment.
Member

Added subscriber: @ideasman42

Added subscriber: @ideasman42
Member

Note this will be resolved with #73178 (Menu Editor for Quick Favorites).
@ideasman42: could we merge this report into #73178? Or put this as a subtask #73178 and tag as Known Issue?

Note this will be resolved with #73178 (Menu Editor for Quick Favorites). @ideasman42: could we merge this report into #73178? Or put this as a subtask #73178 and tag as Known Issue?

Changed status from 'Needs Developer To Reproduce' to: 'Archived'

Changed status from 'Needs Developer To Reproduce' to: 'Archived'
Campbell Barton self-assigned this 2020-01-17 10:43:50 +01:00

@lichtwerk this report will be linked (now you've mentioned it :) ), don't think it helps to keep it open.
Once we have a menu editor it won't be an issue.

Closing since this isn't an error in the code.

@lichtwerk this report will be linked (now you've mentioned it :) ), don't think it helps to keep it open. Once we have a menu editor it won't be an issue. Closing since this isn't an error in the code.
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#73167
No description provided.