Theme: Active Modifier Outline color not saving with the preferences #86781

Closed
opened 2021-03-21 04:59:22 +01:00 by TheRedWaxPolice · 18 comments

System Information
Operating system: Win 10

Blender Version
Broken: blender-2.93.0-258b15da74ad-windows64
Worked: No idea

Short description of error
The "Active Modifier Outline" color is not saving with the preferences. It means that if you change that color and then save the preferences, the next time you launch blender the color will reset itself to it's default "blue" color

Exact steps for others to reproduce the error
Launch blender
Go to Edit > Preferences
In the Themes tab open the Properties section
Change the color of the "Active Modifier Outline"
Click on the button located on the bottom left of the Preferences window and choose "Save Preferences"
Close blender and then launch it again
If you go check the color you can see that it didn't saved with the preferences and it went back to the default "blue"

**System Information** Operating system: Win 10 **Blender Version** Broken: blender-2.93.0-258b15da74ad-windows64 Worked: No idea **Short description of error** The "Active Modifier Outline" color is not saving with the preferences. It means that if you change that color and then save the preferences, the next time you launch blender the color will reset itself to it's default "blue" color **Exact steps for others to reproduce the error** Launch blender Go to Edit > Preferences In the Themes tab open the Properties section Change the color of the "Active Modifier Outline" Click on the button located on the bottom left of the Preferences window and choose "Save Preferences" Close blender and then launch it again If you go check the color you can see that it didn't saved with the preferences and it went back to the default "blue"

Added subscriber: @TheRedWaxPolice

Added subscriber: @TheRedWaxPolice

Added subscriber: @CreatorSiSo

Added subscriber: @CreatorSiSo

Can confirm it is possible to save it to a custom theme and it will be restored when selecting the custome theme after a restart but your default theme always gets reset.

Can confirm it is possible to save it to a custom theme and it will be restored when selecting the custome theme after a restart but your default theme always gets reset.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

This is intentional, you cannot change a preset. You can create another one and remove the previous one.
(Then save the preferences).

This is intentional, you cannot change a preset. You can create another one and remove the previous one. (Then save the preferences).

Closed as duplicate of #61491

Closed as duplicate of #61491

In #86781#1136246, @mano-wii wrote:
This is intentional, you cannot change a preset. You can create another one and remove the previous one.
(Then save the preferences).

Hi, @mano-wii I'm afraid this report was wrongly closed, because this is not what is happening here, and it's not about presets. This is just about saving the preferences.
This bug only happens with this newly added theme property "Active Modifier Outline"... everything else works just fine as always..

You can test yourself if you wish (even on previous versions), you just need to follow the steps above, but instead of changing the "Active Modifier Outline" color, try to change any other theme color, save the preferences and then restart blender. Then you'll see that the changes that you made is preserved and saved with the preferences.
This bug is specific to this recently added color property only.

> In #86781#1136246, @mano-wii wrote: > This is intentional, you cannot change a preset. You can create another one and remove the previous one. > (Then save the preferences). Hi, @mano-wii I'm afraid this report was wrongly closed, because this is not what is happening here, and it's not about presets. This is just about saving the preferences. This bug only happens with this newly added theme property "Active Modifier Outline"... everything else works just fine as always.. You can test yourself if you wish (even on previous versions), you just need to follow the steps above, but instead of changing the "Active Modifier Outline" color, try to change any other theme color, save the preferences and then restart blender. Then you'll see that the changes that you made is preserved and saved with the preferences. This bug is specific to this recently added color property only.

It is indirectly about presets because when trying to change a property and save, you are trying to change one of these presets:
image.png

See #61491 (Saving preferences do not save new colors into current/selected Theme) and #83572 (Blender does not save Preferences changes). They are similar reports.

It is indirectly about presets because when trying to change a property and save, you are trying to change one of these presets: ![image.png](https://archive.blender.org/developer/F9909735/image.png) See #61491 (Saving preferences do not save new colors into current/selected Theme) and #83572 (Blender does not save Preferences changes). They are similar reports.

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

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

In fact, other properties are still present when you change and save the preset.
It deserves an investigation.

In fact, other properties are still present when you change and save the preset. It deserves an investigation.

In #86781#1136452, @mano-wii wrote:
It is indirectly about presets because when trying to change a property and save, you are trying to change one of these presets:
image.png

Not really...
When you save the Preferences, all the settings (including the theme settings) are stored in the "userpref.blend" file. On Windows you can find this file on this path: "%AppData%\Blender Foundation\Blender\2.93\config"

That's the global user preferences file that blender reads on startup. But apparently, for some reason, that specific theme property is not being saved in this file.

This is different from saving a preset. Theme presets can only be saved in the Themes tab, by clicking on that (+) button.

> In #86781#1136452, @mano-wii wrote: > It is indirectly about presets because when trying to change a property and save, you are trying to change one of these presets: > ![image.png](https://archive.blender.org/developer/F9909735/image.png) Not really... When you save the Preferences, all the settings (including the theme settings) are stored in the "userpref.blend" file. On Windows you can find this file on this path: "%AppData%\Blender Foundation\Blender\2.93\config" That's the global user preferences file that blender reads on startup. But apparently, for some reason, that specific theme property is not being saved in this file. This is different from saving a preset. Theme presets can only be saved in the Themes tab, by clicking on that (+) button.
Member

Added subscriber: @Harley

Added subscriber: @Harley
Member

Sorry, but neither of you are right....

It is saving just fine, but is always reverting to this default value. This is because it is a very new theme setting so it needs to be dealt with in our versioning code. So at the moment it is setting that value to the defaults every time you open any file. Versioning_userdef.c, about line 275:

FROM_DEFAULT_V4_UCHAR(space_properties.active);

Very soon - the next time someone does a subversion bump - it will start being overrideable as expected, but this is normal behavior for something like this. It will certainly work as you expect at release.

Sorry, but neither of you are right.... It is saving just fine, but is always reverting to this default value. This is because it is a very new theme setting so it needs to be dealt with in our versioning code. So at the moment it is setting that value to the defaults every time you open any file. Versioning_userdef.c, about line 275: ``` FROM_DEFAULT_V4_UCHAR(space_properties.active); ``` Very soon - the next time someone does a subversion bump - it will start being overrideable as expected, but this is normal behavior for something like this. It will certainly work as you expect at release.
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Oops, turns out it was quite simple! It's easy to forget to move those versioning items in other files when bumping the subversion. Thanks Harley.

Oops, turns out it was quite simple! It's easy to forget to move those versioning items in other files when bumping the subversion. Thanks Harley.

In #86781#1136506, @Harley wrote:
It is saving just fine

Ah great...
Thanks for clearing that out.. ☺

> In #86781#1136506, @Harley wrote: > It is saving just fine Ah great... Thanks for clearing that out.. ☺

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

Changed status from 'Needs Developer To Reproduce' to: 'Archived'
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
5 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#86781
No description provided.