Renaming items from the outliner does not update the despgraph #100375

Closed
opened 2022-08-12 17:31:41 +02:00 by Steven Garcia · 6 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 bit
Graphics card: Radeon RX 460 4 GB

Blender Version
Broken: 3.4.0 Alpha, branch: master, commit date: 2022-08-11 23:16, hash: 282a861e11, type: release
Worked: Not sure if this ever worked. It's definitely still a thing in release.

Short description of error
Renaming an object from the outliner and then attempting to get the name of the evaluated object will give you the name the object had on creation unless you rename it from the properties menu.

Exact steps for others to reproduce the error

  1. Start up Blender to the default scene with the cube.
  2. Split the view and set the second window to the python console. Enter the following script
depsgraph = bpy.context.evaluated_depsgraph_get()
obj = bpy.data.objects["Cube"]
obj_for_convert = obj.evaluated_get(depsgraph)
evaluted_mesh = obj_for_convert.to_mesh(preserve_all_data_layers=True, depsgraph=depsgraph)
print("The mesh name: ", evaluted_mesh.name)
print("The material name: ", evaluted_mesh.materials[0].name)
  1. See the results of the prints above. They should reflect the current scene.
  2. Now go to the outliner and rename the mesh data name or the material assigned to the object. Run the script again and you should still see the starting name you had previously. Renaming multiple times from the outliner shouldn't change this.
  3. Now rename the object or material from the properties menu. Running the script should now give you the name you set.

Expectation is that renaming an item in anyway will show up in the evaluated object without any extra input on my part.

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 bit Graphics card: Radeon RX 460 4 GB **Blender Version** Broken: 3.4.0 Alpha, branch: master, commit date: 2022-08-11 23:16, hash: 282a861e11b3, type: release Worked: Not sure if this ever worked. It's definitely still a thing in release. **Short description of error** Renaming an object from the outliner and then attempting to get the name of the evaluated object will give you the name the object had on creation unless you rename it from the properties menu. **Exact steps for others to reproduce the error** 1. Start up Blender to the default scene with the cube. 2. Split the view and set the second window to the python console. Enter the following script ``` depsgraph = bpy.context.evaluated_depsgraph_get() obj = bpy.data.objects["Cube"] obj_for_convert = obj.evaluated_get(depsgraph) evaluted_mesh = obj_for_convert.to_mesh(preserve_all_data_layers=True, depsgraph=depsgraph) print("The mesh name: ", evaluted_mesh.name) print("The material name: ", evaluted_mesh.materials[0].name) ``` 3. See the results of the prints above. They should reflect the current scene. 4. Now go to the outliner and rename the mesh data name or the material assigned to the object. Run the script again and you should still see the starting name you had previously. Renaming multiple times from the outliner shouldn't change this. 5. Now rename the object or material from the properties menu. Running the script should now give you the name you set. Expectation is that renaming an item in anyway will show up in the evaluated object without any extra input on my part.
Author

Added subscriber: @General_101

Added subscriber: @General_101
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

Can confirm.

Can confirm.

This issue was referenced by e650cdd72a

This issue was referenced by e650cdd72a6597a69fcaa98d2a51994ccc34772d

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Bastien Montagne self-assigned this 2022-08-16 14:21:31 +02: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#100375
No description provided.