Custom property in workspace "Layout" can not be added to driver #68319

Open
opened 2019-08-06 16:40:06 +02:00 by Realname · 6 comments

System Information
Operating system: Linux-4.10.0-28-generic-x86_64-with-debian-stretch-sid 64 Bits
Graphics card: Mesa DRI Intel(R) Ivybridge Mobile Intel Open Source Technology Center 3.3 (Core Profile) Mesa 17.0.7

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449
Worked: (optional)

Short description of error
[Please fill out a short description of the error here]

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

When adding custom property in any workspace can't use it in any drivers. It works with object's custom property world's custom property, but not in workspaces.
I think it's a bug.

Thank's in advance.

Screenshot from 2019-08-06 14-38-20.png

Screenshot from 2019-08-06 14-38-40.png

workspace_custom_property_drivers.blend

**System Information** Operating system: Linux-4.10.0-28-generic-x86_64-with-debian-stretch-sid 64 Bits Graphics card: Mesa DRI Intel(R) Ivybridge Mobile Intel Open Source Technology Center 3.3 (Core Profile) Mesa 17.0.7 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` Worked: (optional) **Short description of error** [Please fill out a short description of the error here] **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] When adding custom property in any workspace can't use it in any drivers. It works with object's custom property world's custom property, but not in workspaces. I think it's a bug. Thank's in advance. ![Screenshot from 2019-08-06 14-38-20.png](https://archive.blender.org/developer/F7651719/Screenshot_from_2019-08-06_14-38-20.png) ![Screenshot from 2019-08-06 14-38-40.png](https://archive.blender.org/developer/F7651721/Screenshot_from_2019-08-06_14-38-40.png) [workspace_custom_property_drivers.blend](https://archive.blender.org/developer/F7651723/workspace_custom_property_drivers.blend)
Author

Added subscriber: @spacialy4

Added subscriber: @spacialy4

Added subscribers: @Sergey, @mano-wii

Added subscribers: @Sergey, @mano-wii

When opening the file, I came across an assert on this line , which is possibly related to the problem described.

>	blender.exe!DEG::DepsgraphNodeBuilder::build_id(ID * id) Line 465	C++

 	blender.exe!DEG::DepsgraphNodeBuilder::build_driver_variables(ID * id, FCurve * fcurve) Line 941	C++
 	blender.exe!DEG::DepsgraphNodeBuilder::build_driver(ID * id, FCurve * fcurve, int driver_index) Line 930	C++
 	blender.exe!DEG::DepsgraphNodeBuilder::build_animdata(ID * id) Line 871	C++
 	blender.exe!DEG::DepsgraphNodeBuilder::build_object(int base_index, Object * object, DEG::eDepsNode_LinkedState_Type linked_state, bool is_visible) Line 611	C++
 	blender.exe!DEG::DepsgraphNodeBuilder::build_view_layer(Scene * scene, ViewLayer * view_layer, DEG::eDepsNode_LinkedState_Type linked_state) Line 108	C++
 	blender.exe!DEG_graph_build_from_view_layer(Depsgraph * graph, Main * bmain, Scene * scene, ViewLayer * view_layer) Line 247	C++
 	blender.exe!DEG_graph_relations_update(Depsgraph * graph, Main * bmain, Scene * scene, ViewLayer * view_layer) Line 495	C++
 	blender.exe!wm_event_do_depsgraph(bContext * C, bool is_after_open_file) Line 367	C
 	blender.exe!wm_file_read_post(bContext * C, const bool is_startup_file, const bool is_factory_startup, const bool use_data, const bool use_userdef, const bool reset_app_template) Line 557	C
 	blender.exe!WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 675	C
 	blender.exe!wm_file_read_opwrap(bContext * C, const unsigned char * filepath, ReportList * reports, const bool autoexec_init) Line 2095	C
 	blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2236	C
 	blender.exe!wm_open_mainfile_exec(bContext * C, wmOperator * op) Line 2273	C
 	blender.exe!wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2461	C
 	blender.exe!wm_handler_fileselect_call(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, const wmEvent * event) Line 2560	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2956	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3008	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3387	C
 	blender.exe!WM_main(bContext * C) Line 420	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 520	C
 	[External Code]	

@Sergey, your area?

When opening the file, I came across an assert on this [line ](https://developer.blender.org/diffusion/B/browse/master/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc$465), which is possibly related to the problem described. ``` > blender.exe!DEG::DepsgraphNodeBuilder::build_id(ID * id) Line 465 C++ blender.exe!DEG::DepsgraphNodeBuilder::build_driver_variables(ID * id, FCurve * fcurve) Line 941 C++ blender.exe!DEG::DepsgraphNodeBuilder::build_driver(ID * id, FCurve * fcurve, int driver_index) Line 930 C++ blender.exe!DEG::DepsgraphNodeBuilder::build_animdata(ID * id) Line 871 C++ blender.exe!DEG::DepsgraphNodeBuilder::build_object(int base_index, Object * object, DEG::eDepsNode_LinkedState_Type linked_state, bool is_visible) Line 611 C++ blender.exe!DEG::DepsgraphNodeBuilder::build_view_layer(Scene * scene, ViewLayer * view_layer, DEG::eDepsNode_LinkedState_Type linked_state) Line 108 C++ blender.exe!DEG_graph_build_from_view_layer(Depsgraph * graph, Main * bmain, Scene * scene, ViewLayer * view_layer) Line 247 C++ blender.exe!DEG_graph_relations_update(Depsgraph * graph, Main * bmain, Scene * scene, ViewLayer * view_layer) Line 495 C++ blender.exe!wm_event_do_depsgraph(bContext * C, bool is_after_open_file) Line 367 C blender.exe!wm_file_read_post(bContext * C, const bool is_startup_file, const bool is_factory_startup, const bool use_data, const bool use_userdef, const bool reset_app_template) Line 557 C blender.exe!WM_file_read(bContext * C, const unsigned char * filepath, ReportList * reports) Line 675 C blender.exe!wm_file_read_opwrap(bContext * C, const unsigned char * filepath, ReportList * reports, const bool autoexec_init) Line 2095 C blender.exe!wm_open_mainfile__open(bContext * C, wmOperator * op) Line 2236 C blender.exe!wm_open_mainfile_exec(bContext * C, wmOperator * op) Line 2273 C blender.exe!wm_handler_fileselect_do(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, int val) Line 2461 C blender.exe!wm_handler_fileselect_call(bContext * C, ListBase * handlers, wmEventHandler_Op * handler, const wmEvent * event) Line 2560 C blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2956 C blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3008 C blender.exe!wm_event_do_handlers(bContext * C) Line 3387 C blender.exe!WM_main(bContext * C) Line 420 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 520 C [External Code] ``` @Sergey, your area?

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscribers: @JulianEisel, @dfelinto

Added subscribers: @JulianEisel, @dfelinto

Workspace is an interface and it can not be used to drive anything in the scene. So this isn't a bug that driver doesn't work but rather expected behavior.

The issue, however, goes deeper than assert()in the code. Assert is easy to silence if needed, but it shouldn't be possible to select workspace as a source of driver.

What is unclear to me is what was motivation for making Workspace a reusable ID? It causes issues like this. Seems only forcing all sorts of workarounds in other areas. This is something for @JulianEisel or @dfelinto to look into.

P.S. Since the workspace is an ID I've tried to link it from one file to another and got the following error: Warning: Library file, loading empty scene.

Workspace is an interface and it can not be used to drive anything in the scene. So this isn't a bug that driver doesn't work but rather expected behavior. The issue, however, goes deeper than `assert()`in the code. Assert is easy to silence if needed, but it shouldn't be possible to select workspace as a source of driver. What is unclear to me is what was motivation for making Workspace a reusable ID? It causes issues like this. Seems only forcing all sorts of workarounds in other areas. This is something for @JulianEisel or @dfelinto to look into. P.S. Since the workspace is an ID I've tried to link it from one file to another and got the following error: `Warning: Library file, loading empty scene`.
Philipp Oeser removed the
Interest
Animation & Rigging
label 2023-02-09 14:36:40 +01:00
Philipp Oeser added the
Interest
Core
label 2023-02-10 11:09:57 +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
3 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#68319
No description provided.