Regression: Global Viewport Visibility no longer readable when object is appended from another file #111447

Open
opened 2023-08-23 21:22:20 +02:00 by ionut · 4 comments

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 537.13

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-10-25 23:16, hash: rB32cc9ff03746
Worked: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-26 21:28, hash: rBd046a1f2fa46

Short description of error
Globally disable in viewports Bug. I just upgraded from version 2.9 to version 3.X I downloaded version 3.5.1 and noticed this problem, then I downloaded some other versions of 3.X and noticed the same problem, the same problem as in version 2. X I didn't have it.

When I create an object and then I disable the globally disable viewport option, and then I save the file, when I open another blender file and append to that object, it appears in the scene with globally disable viewport ON even if I saved it with this option to OFF. I know I can disable it, but this is very annoying when I append a rig and have to check that box 100 times on different meshes

Here is a video to understand better : https://youtu.be/AecByo8PYQw
I did that on 3.6.2 and 2.9.1 to see the differences.

Exact steps for others to reproduce the error

  1. Open any 3.X version of blender.
  2. Delete the camera and the sun, keep the cube.
  3. Then disable the globally disable viewport option.
  4. Save the file somewhere. Then close blender.
  5. Open blender again (not the file you just saved) .
    Then append the cube you just saved and you will see that it appears with globally disable in viewport ON, even if you saved it with off.
**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 537.13 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-10-25 23:16, hash: `rB32cc9ff03746` Worked: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-26 21:28, hash: `rBd046a1f2fa46` **Short description of error** Globally disable in viewports Bug. I just upgraded from version 2.9 to version 3.X I downloaded version 3.5.1 and noticed this problem, then I downloaded some other versions of 3.X and noticed the same problem, the same problem as in version 2. X I didn't have it. When I create an object and then I disable the globally disable viewport option, and then I save the file, when I open another blender file and append to that object, it appears in the scene with globally disable viewport ON even if I saved it with this option to OFF. I know I can disable it, but this is very annoying when I append a rig and have to check that box 100 times on different meshes Here is a video to understand better : https://youtu.be/AecByo8PYQw I did that on 3.6.2 and 2.9.1 to see the differences. **Exact steps for others to reproduce the error** 1. Open any 3.X version of blender. 2. Delete the camera and the sun, keep the cube. 3. Then disable the globally disable viewport option. 4. Save the file somewhere. Then close blender. 5. Open blender again (not the file you just saved) . Then append the cube you just saved and you will see that it appears with globally disable in viewport ON, even if you saved it with off.
ionut added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-08-23 21:22:21 +02:00
Iliya Katushenock changed title from Globally disable in viewports Bug to Regression: Global Viewport Visibility no longer readable when object is appended from another file 2023-08-24 02:04:52 +02:00

Hi @dfelinto , i can't find any notes about this in 3.0 release notes. Documentation is also not very detailed. I think the only clue to this behavior is: high-poly objects that need to be instanced in other files. But I don't see any clear descriptions of this exception. Can you say if this report should be opened?

Hi @dfelinto , i can't find any notes about this in 3.0 release notes. Documentation is also not very detailed. I think the only clue to this behavior is: `high-poly objects that need to be instanced in other files`. But I don't see any clear descriptions of this exception. Can you say if this report should be opened?
Member

visibility flags are removed purposefully by @mont29 in d7cf7d4048 https://projects.blender.org/blender/blender/src/branch/main/source/blender/blenkernel/intern/blendfile_link_append.cc#L551

    /* While in general the object should not be manipulated,
     * when the user requests the object to be selected, ensure it's visible and selectable. */

Commit message says "NOTE: This should be a non-behavioral change commit." but behavior has changed. 😅
I'll forward the report to devs before closing.

visibility flags are removed purposefully by @mont29 in d7cf7d4048289d49463a3ef8b9b2172d3c4d44b6 https://projects.blender.org/blender/blender/src/branch/main/source/blender/blenkernel/intern/blendfile_link_append.cc#L551 ``` /* While in general the object should not be manipulated, * when the user requests the object to be selected, ensure it's visible and selectable. */ ``` Commit message says "NOTE: This should be a non-behavioral change commit." but behavior has changed. 😅 I'll forward the report to devs before closing.
Pratik Borhade added
Status
Needs Info from Developers
and removed
Status
Confirmed
labels 2023-08-24 07:49:08 +02:00

This code already existed before that refactor, in the instantiation code of readfile.c.

Not entirely sure why it was not 'expressing' itself in 2.9x (likely because append instantiation was already handled elsewhere?), but would rather consider that as a bug, than current behavior, which is expected according to comments.

The rational is that you do not want a selected but hidden object in your scene. Note that disabling the Select option when appending should 'solve' that issue.

This code already existed before that refactor, in the [instantiation code of `readfile.c`](https://projects.blender.org/blender/blender/src/commit/4fe8c62b56d738163902e9f38565a1891abc5a36/source/blender/blenloader/intern/readfile.c#L4512). Not entirely sure why it was not 'expressing' itself in 2.9x (likely because append instantiation was already handled elsewhere?), but would rather consider that as a bug, than current behavior, which is expected according to comments. The rational is that you _do not_ want a selected but hidden object in your scene. Note that disabling the [`Select option`](https://docs.blender.org/manual/en/3.6/files/linked_libraries/link_append.html#id3) when appending should 'solve' that issue.

When selecting multiple options I don't think the selection option should "override" the object "selectability" and "visibility".

When appending individual objects (specially if we do it via the asset shelf/asset browser) I think it is reasonable to force them to be visible and selectable.

Short of making different rules (for assets and regular append) I think we could just archive this. I wouldn't oppose to different behaviours though (as long as assets can be appended via asset shelf/browser as they do now).

When selecting multiple options I don't think the selection option should "override" the object "selectability" and "visibility". When appending individual objects (specially if we do it via the asset shelf/asset browser) I think it is reasonable to force them to be visible and selectable. Short of making different rules (for assets and regular append) I think we could just archive this. I wouldn't oppose to different behaviours though (as long as assets can be appended via asset shelf/browser as they do now).
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#111447
No description provided.