Inconsistent Behavior of Set Material Node #94232

Closed
opened 2021-12-18 19:31:28 +01:00 by Gerstmann Bradley · 9 comments

System Information
Operating system: Windows-10-10.0.17134-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.11

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: f1cca30557
Worked: (newest version of Blender that worked as expected)

Short description of error
image.png
image.png
image.png

Figure 1. The desired result.
Figure 2. The issue.
Figure 3. The solution.
Set Material.blend

Another solution is to just add an empty material slot on the object in the Properties Editor (this will have the same consequence as your solution -- reserves one index for the default material, then another for the newly assigned material).

**System Information** Operating system: Windows-10-10.0.17134-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.11 **Blender Version** Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: `f1cca30557` Worked: (newest version of Blender that worked as expected) **Short description of error** ![image.png](https://archive.blender.org/developer/F12761649/image.png) ![image.png](https://archive.blender.org/developer/F12761651/image.png) ![image.png](https://archive.blender.org/developer/F12761654/image.png) Figure 1. The desired result. Figure 2. The issue. Figure 3. The solution. [Set Material.blend](https://archive.blender.org/developer/F12761659/Set_Material.blend) Another solution is to just add an empty material slot on the object in the Properties Editor (this will have the same consequence as your solution -- reserves one index for the default material, then another for the newly assigned material).

Added subscriber: @Bradley_G

Added subscriber: @Bradley_G
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Not sure this is a bug.

If there is no material at all to begin with, geometry nodes seems to not add an index/slot for the default material.
So there is no distinction between the newly assigned material and the default material anymore.
Another solution is to just add an empty material slot on the object in the Properties Editor (this will have the same consequence as your solution -- reserves one index for the default material, then another for the newly assigned material).

Would need to gather input from #geometry_nodes devs here...

Not sure this is a bug. If there is no material at all to begin with, geometry nodes seems to not add an index/slot for the default material. So there is no distinction between the newly assigned material and the default material anymore. Another solution is to just add an empty material slot on the object in the Properties Editor (this will have the same consequence as your solution -- reserves one index for the default material, then another for the newly assigned material). Would need to gather input from #geometry_nodes devs here...

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly

Actually I've discussed with @HooglyBoogly before posting.
This isn't really a bug but it's not ideal. So I was asked to posted the file here to track this known issue until it can be improved in the future.

Actually I've discussed with @HooglyBoogly before posting. This isn't really a bug but it's not ideal. So I was asked to posted the file here to track this known issue until it can be improved in the future.
Member

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

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Hans Goudey self-assigned this 2021-12-22 19:18:53 +01:00

This issue was referenced by 8f89196be2

This issue was referenced by 8f89196be252cd541a0669c0aed02f4ad457e39d
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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#94232
No description provided.