Possible to change Library Overrided material once, but then locks. #74746

Closed
opened 2020-03-14 00:13:50 +01:00 by Zach Hixson · 15 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card:

  • GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00
  • GeForce GTX 970

Blender Version
Broken: version: 2.83 (sub 8), branch: master, commit date: 2020-03-13 15:29, hash: 110a35ef5a

  • Also broken in 2.82. I don't know if it was broken prior to 2.82 though.

Short description of error
When using "Library Override," to link in an object from an external .blend file, it's possible to change the material even though the material dropdown button is grayed out by deleting the material slot and adding a new one. This works perfectly, but the dropdown is still grayed out and the only way to change the material again is to delete the material slot and add a new one.

Exact steps for others to reproduce the error

  1. Create an object in a library .blend file with a material
  2. Link in and override that object into a second .blend file
  3. Click the "-" button in the material slots
  4. Add new material
  5. New material works fine and settings are editable, but the dropdown arrow, new material, and "X" button are all grayed out.

Here's a link to a video demonstrating the issue: Video

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: - GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00 - GeForce GTX 970 **Blender Version** Broken: version: 2.83 (sub 8), branch: master, commit date: 2020-03-13 15:29, hash: `110a35ef5a` - Also broken in 2.82. I don't know if it was broken prior to 2.82 though. **Short description of error** When using "Library Override," to link in an object from an external .blend file, it's possible to change the material even though the material dropdown button is grayed out by deleting the material slot and adding a new one. This works perfectly, but the dropdown is still grayed out and the only way to change the material again is to delete the material slot and add a new one. **Exact steps for others to reproduce the error** 1. Create an object in a library .blend file with a material 2. Link in and override that object into a second .blend file 3. Click the "-" button in the material slots 4. Add new material 5. New material works fine and settings are editable, but the dropdown arrow, new material, and "X" button are all grayed out. Here's a link to a video demonstrating the issue: [Video ](https://youtu.be/RNlTuwnp4Io)
Author

Added subscriber: @ZachHixson

Added subscriber: @ZachHixson

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I can not reproduce this even in 2.82 or in 110a35ef5a.

Can you upload .blend files, that do exhibit this issue?

I can not reproduce this even in 2.82 or in `110a35ef5a`. Can you upload .blend files, that do exhibit this issue?
Author

It doesn't seem to save in the file, so I'm afraid it's impossible to send. After some googling it seems that Library overrides of materials aren't supported yet, so it might have just been a button that the devs forgot to gray out.

It doesn't seem to save in the file, so I'm afraid it's impossible to send. After some googling it seems that Library overrides of materials aren't supported yet, so it might have just been a button that the devs forgot to gray out.

Will have to look at how this is currently supported. If you can not share blend file can you make screen recording or screenshot of bug so there is munimum amount of miscommunication?

Will have to look at how this is currently supported. If you can not share blend file can you make screen recording or screenshot of bug so there is munimum amount of miscommunication?
Author

Here's a link to a video demonstrating the issue: Video

Here's a link to a video demonstrating the issue: [Video ](https://youtu.be/RNlTuwnp4Io)

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

Thanks for video, for some reason I was linking and overriding material only.

Just a note, this glitch doesn't happen when you override object data.
Also when you remove all materials and add new one blender will crash.

type was NULL

>	blender.exe!RNA_struct_name_property(const StructRNA * type) Řádek 739	C

 	blender.exe!rna_property_override_diff_propptr_validate_diffing(PointerRNA * propptr_a, PointerRNA * propptr_b, const bool no_prop_name, bool * r_is_id, bool * r_is_null, bool * r_is_type_diff, unsigned char * * r_propname_a, unsigned char * propname_a_buff, unsigned __int64 propname_a_buff_size, unsigned char * * r_propname_b, unsigned char * propname_b_buff, unsigned __int64 propname_b_buff_size) Řádek 1190	C
 	blender.exe!rna_property_override_diff_default(Main * bmain, PointerRNA * ptr_a, PointerRNA * ptr_b, PropertyRNA * prop_a, PropertyRNA * prop_b, const int len_a, const int len_b, const int mode, IDOverrideLibrary * override, const unsigned char * rna_path, const int flags, bool * r_override_changed) Řádek 1729	C
 	blender.exe!rna_property_override_diff(Main * bmain, PointerRNA * ptr_a, PointerRNA * ptr_b, PropertyRNA * prop, PropertyRNA * prop_a, PropertyRNA * prop_b, const unsigned char * rna_path, eRNACompareMode mode, IDOverrideLibrary * override, const int flags, eRNAOverrideMatchResult * r_report_flags) Řádek 367	C
 	blender.exe!RNA_struct_override_matches(Main * bmain, PointerRNA * ptr_local, PointerRNA * ptr_reference, const unsigned char * root_path, IDOverrideLibrary * override, const eRNAOverrideMatch flags, eRNAOverrideMatchResult * r_report_flags) Řádek 726	C
 	blender.exe!BKE_lib_override_library_operations_create(Main * bmain, ID * local, const bool force_auto) Řádek 728	C
 	blender.exe!BKE_lib_override_library_main_operations_create(Main * bmain, const bool force_auto) Řádek 755	C
 	blender.exe!BKE_undosys_step_push_with_type(UndoStack * ustack, bContext * C, const unsigned char * name, const UndoType * ut) Řádek 513	C
 	blender.exe!ED_undo_push(bContext * C, const unsigned char * str) Řádek 98	C
 	blender.exe!wm_operator_finished(bContext * C, wmOperator * op, const bool repeat, const bool store) Řádek 912	C
 	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Řádek 1304	C
 	blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Řádek 1484	C
 	blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Řádek 1530	C
 	blender.exe!ui_apply_but_funcs_after(bContext * C) Řádek 884	C
 	blender.exe!ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Řádek 10732	C
 	blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Řádek 620	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Řádek 2720	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Řádek 2832	C
 	blender.exe!wm_event_do_handlers(bContext * C) Řádek 3227	C
 	blender.exe!WM_main(bContext * C) Řádek 450	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Řádek 526	C
Thanks for video, for some reason I was linking and overriding material only. Just a note, this glitch doesn't happen when you override object data. Also when you remove all materials and add new one blender will crash. `type` was NULL ``` > blender.exe!RNA_struct_name_property(const StructRNA * type) Řádek 739 C blender.exe!rna_property_override_diff_propptr_validate_diffing(PointerRNA * propptr_a, PointerRNA * propptr_b, const bool no_prop_name, bool * r_is_id, bool * r_is_null, bool * r_is_type_diff, unsigned char * * r_propname_a, unsigned char * propname_a_buff, unsigned __int64 propname_a_buff_size, unsigned char * * r_propname_b, unsigned char * propname_b_buff, unsigned __int64 propname_b_buff_size) Řádek 1190 C blender.exe!rna_property_override_diff_default(Main * bmain, PointerRNA * ptr_a, PointerRNA * ptr_b, PropertyRNA * prop_a, PropertyRNA * prop_b, const int len_a, const int len_b, const int mode, IDOverrideLibrary * override, const unsigned char * rna_path, const int flags, bool * r_override_changed) Řádek 1729 C blender.exe!rna_property_override_diff(Main * bmain, PointerRNA * ptr_a, PointerRNA * ptr_b, PropertyRNA * prop, PropertyRNA * prop_a, PropertyRNA * prop_b, const unsigned char * rna_path, eRNACompareMode mode, IDOverrideLibrary * override, const int flags, eRNAOverrideMatchResult * r_report_flags) Řádek 367 C blender.exe!RNA_struct_override_matches(Main * bmain, PointerRNA * ptr_local, PointerRNA * ptr_reference, const unsigned char * root_path, IDOverrideLibrary * override, const eRNAOverrideMatch flags, eRNAOverrideMatchResult * r_report_flags) Řádek 726 C blender.exe!BKE_lib_override_library_operations_create(Main * bmain, ID * local, const bool force_auto) Řádek 728 C blender.exe!BKE_lib_override_library_main_operations_create(Main * bmain, const bool force_auto) Řádek 755 C blender.exe!BKE_undosys_step_push_with_type(UndoStack * ustack, bContext * C, const unsigned char * name, const UndoType * ut) Řádek 513 C blender.exe!ED_undo_push(bContext * C, const unsigned char * str) Řádek 98 C blender.exe!wm_operator_finished(bContext * C, wmOperator * op, const bool repeat, const bool store) Řádek 912 C blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Řádek 1304 C blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Řádek 1484 C blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Řádek 1530 C blender.exe!ui_apply_but_funcs_after(bContext * C) Řádek 884 C blender.exe!ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Řádek 10732 C blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Řádek 620 C blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Řádek 2720 C blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Řádek 2832 C blender.exe!wm_event_do_handlers(bContext * C) Řádek 3227 C blender.exe!WM_main(bContext * C) Řádek 450 C blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Řádek 526 C ```

Added subscriber: @mont29

Added subscriber: @mont29

Override of materials is currently glitchy at best, this is a known issue. the only scenario which is kind of working is indeed to override object and obdata, or to assign materials to object instead of obdata...

Override of materials is currently glitchy at best, this is a known issue. the only scenario which is kind of working is indeed to override object and obdata, or to assign materials to object instead of obdata...

More of a known TODO actually...

More of a known TODO actually...

Added subscriber: @VupliDerts-2

Added subscriber: @VupliDerts-2

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Bastien Montagne self-assigned this 2020-07-13 14:33:52 +02:00

This should be fixed now, it's not possible anymore to add new material slots to override data.

This should be fixed now, it's not possible anymore to add new material slots to override data.
Thomas Dinges added this to the 2.90 milestone 2023-02-08 16:27:47 +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#74746
No description provided.