'Reset to default value' sets all values in the physics cloth, soft body and fluid tabs to 0 or 1 #78634

Closed
opened 2020-07-05 11:53:23 +02:00 by Wouter Stomp · 10 comments

System Information
Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15

Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-06-28 15:13, hash: b21ba5e579
Worked: unknown

Short description of error
In the physics tab when cloth, soft body or fluid is added, right-clicking and pressing 'reset to default value' will set the value to 0 (and in some cases 1) instead of the actual default value.

Exact steps for others to reproduce the error
see above

**System Information** Operating system: Darwin-19.5.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.9.15 **Blender Version** Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-06-28 15:13, hash: `b21ba5e579` Worked: unknown **Short description of error** In the physics tab when cloth, soft body or fluid is added, right-clicking and pressing 'reset to default value' will set the value to 0 (and in some cases 1) instead of the actual default value. **Exact steps for others to reproduce the error** see above
Author

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket

Added subscriber: @iss

Added subscriber: @iss

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

Changed status from 'Needs Triage' to: 'Archived'
Richard Antalik self-assigned this 2020-07-08 05:50:41 +02:00

This is working correctly. Each property does have default value for situation when the property is created. They are usually creaded with new object or scene or pretty much anything. This can be modified further by software though. So if you add quick smoke on cube, domain resolution default value is 6 instead of 32 as it may seem.

This is working correctly. Each property does have default value for situation when the property is created. They are usually creaded with new object or scene or pretty much anything. This can be modified further by software though. So if you add quick smoke on cube, domain resolution default value is 6 instead of 32 as it may seem.
Author

But these are not the default values they reset to. For example if I add cloth physics to an object, the quality steps are set to 5 by default, but clicking 'reset to default value' sets the value to 1. (or do I misunderstand your answer?)

But these are not the default values they reset to. For example if I add cloth physics to an object, the quality steps are set to 5 by default, but clicking 'reset to default value' sets the value to 1. (or do I misunderstand your answer?)

These default values are hard-coded. For example for quality it is

  prop = RNA_def_property(srna, "quality", PROP_INT, PROP_NONE);
  RNA_def_property_int_sdna(prop, NULL, "stepsPerFrame");
  RNA_def_property_range(prop, 1, INT_MAX);

This value may be changed before it is presented to you, but it is reset always to hard-coded value. That is what "default value" means here.

These default values are hard-coded. For example for quality it is ``` prop = RNA_def_property(srna, "quality", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "stepsPerFrame"); RNA_def_property_range(prop, 1, INT_MAX); ``` This value may be changed before it is presented to you, but it is reset always to hard-coded value. That is what "default value" means here.
Author

Thanks. So technically it is doing the right thing, but it is totally worthless and unintuitive to end-users. I would expect the number that first appears there when you add the physics to be the default value. Digging a bit further I found this task that suggests default values need to be added in code for countless values: https://developer.blender.org/T47618 Is there any place where this is tracked or is there any systematic effort to add these values?

Thanks. So technically it is doing the right thing, but it is totally worthless and unintuitive to end-users. I would expect the number that first appears there when you add the physics to be the default value. Digging a bit further I found this task that suggests default values need to be added in code for countless values: https://developer.blender.org/T47618 Is there any place where this is tracked or is there any systematic effort to add these values?

Added subscriber: @sebbas

Added subscriber: @sebbas

I don't think this is tracked in any way. Perhaps once in a while we may do a cleanup or we change way how thing works and these values will get consolidated.

I think that with physics sim, main issue is, that for different simulations you need different defaults and properties are shared for multiple types(like between gas or liquid). Same may apply for force fields and other things. I may agree that for some or even most values default may be completely off.

I will tag @sebbas here if he consider this to be valid issue worth resolving, he can reopen.

I don't think this is tracked in any way. Perhaps once in a while we may do a cleanup or we change way how thing works and these values will get consolidated. I think that with physics sim, main issue is, that for different simulations you need different defaults and properties are shared for multiple types(like between gas or liquid). Same may apply for force fields and other things. I may agree that for some or even most values default may be completely off. I will tag @sebbas here if he consider this to be valid issue worth resolving, he can reopen.
Author

Just in case somebody stumbles upon this report, this is now being tracked and fixed in #80164.

Just in case somebody stumbles upon this report, this is now being tracked and fixed in #80164.
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
2 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#78634
No description provided.