Quick explode Python error due to removal of EEVEE Legacy API #130822

Closed
opened 2024-11-24 05:08:28 +01:00 by Nyako · 7 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 566.14 Opengl Backend

Blender Version
Broken: version: 4.3.0, branch: blender-v4.3-release, commit date: 2024-11-19 08:52, hash: 2b18cad88b13
Worked: 4.2

Short description of error
quick explode will report errors
Exact steps for others to reproduce the error
Create a new file
Add quick explode to the default cube

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 566.14 Opengl Backend **Blender Version** Broken: version: 4.3.0, branch: blender-v4.3-release, commit date: 2024-11-19 08:52, hash: `2b18cad88b13` Worked: 4.2 **Short description of error** quick explode will report errors **Exact steps for others to reproduce the error** Create a new file Add quick explode to the default cube
Nyako added the
Type
Bug
Severity
Normal
Status
Needs Triage
labels 2024-11-24 05:08:28 +01:00

I can see the error message, but the explosion works fine.

Python: Traceback (most recent call last):
  File "C:\Programs\Blender\blender-4.3.0-windows-x64\blender-4.3.0-windows-x64\4.3\scripts\startup\bl_operators\object_quick_effects.py", line 397, in invoke
    return self.execute(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Programs\Blender\blender-4.3.0-windows-x64\blender-4.3.0-windows-x64\4.3\scripts\startup\bl_operators\object_quick_effects.py", line 316, in execute
    mat.shadow_method = 'HASHED'
    ^^^^^^^^^^^^^^^^^
AttributeError: 'Material' object has no attribute 'shadow_method'
I can see the error message, but the explosion works fine. ``` Python: Traceback (most recent call last): File "C:\Programs\Blender\blender-4.3.0-windows-x64\blender-4.3.0-windows-x64\4.3\scripts\startup\bl_operators\object_quick_effects.py", line 397, in invoke return self.execute(context) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Programs\Blender\blender-4.3.0-windows-x64\blender-4.3.0-windows-x64\4.3\scripts\startup\bl_operators\object_quick_effects.py", line 316, in execute mat.shadow_method = 'HASHED' ^^^^^^^^^^^^^^^^^ AttributeError: 'Material' object has no attribute 'shadow_method' ```

Working: 4.2.1
Broken: 4.3, 4.4 Alpha
System Information
Operating system: Windows 11
Graphics card: NVIDIA GeForce RTX 4060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 566.14

**Working:** 4.2.1 **Broken:** 4.3, 4.4 Alpha **System Information** Operating system: Windows 11 Graphics card: NVIDIA GeForce RTX 4060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 566.14

I can see the error message, but the explosion works fine.

Python: Traceback (most recent call last):
  File "C:\Programs\Blender\blender-4.3.0-windows-x64\blender-4.3.0-windows-x64\4.3\scripts\startup\bl_operators\object_quick_effects.py", line 397, in invoke
    return self.execute(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Programs\Blender\blender-4.3.0-windows-x64\blender-4.3.0-windows-x64\4.3\scripts\startup\bl_operators\object_quick_effects.py", line 316, in execute
    mat.shadow_method = 'HASHED'
    ^^^^^^^^^^^^^^^^^
AttributeError: 'Material' object has no attribute 'shadow_method'

Only part of the explosion works, everything after mat.shadow_method = 'HASHED' in object_quick_effects.py does not work, including setting the material correct, setting the velocity, etc. I believe it's due to Material.shadow_method being removed from the API(842c2b2c6a).

Below is default cube with quick explosion at frame 1.
image

> I can see the error message, but the explosion works fine. > > ``` > Python: Traceback (most recent call last): > File "C:\Programs\Blender\blender-4.3.0-windows-x64\blender-4.3.0-windows-x64\4.3\scripts\startup\bl_operators\object_quick_effects.py", line 397, in invoke > return self.execute(context) > ^^^^^^^^^^^^^^^^^^^^^ > File "C:\Programs\Blender\blender-4.3.0-windows-x64\blender-4.3.0-windows-x64\4.3\scripts\startup\bl_operators\object_quick_effects.py", line 316, in execute > mat.shadow_method = 'HASHED' > ^^^^^^^^^^^^^^^^^ > AttributeError: 'Material' object has no attribute 'shadow_method' > ``` > Only part of the explosion works, everything after `mat.shadow_method = 'HASHED'` in `object_quick_effects.py` does not work, including setting the material correct, setting the velocity, etc. I believe it's due to `Material.shadow_method` being removed from the API(https://projects.blender.org/blender/blender-developer-docs/commit/842c2b2c6a73a183a8aa4aab0439e5c77f2345cf). Below is default cube with quick explosion at frame 1. ![image](/attachments/95eccd19-448b-45c2-858f-872bdcacc41c)

I'm getting different results.

4.3/4.4

image

4.2

image
I'm getting different results. # 4.3/4.4 <img width="426" alt="image" src="attachments/c4dc8417-de90-439d-96c0-fef86e954732"> # 4.2 <img width="530" alt="image" src="attachments/f2e354a3-3d12-4a3f-a8a4-9342d09f48f5">

I'm getting different results.

They should be the same under the same settings

> I'm getting different results. They should be the same under the same settings

I'm not really into effects and particles, are these results random or should they be the same every time you add this effect?

I'm not really into effects and particles, are these results random or should they be the same every time you add this effect?
Member

Marking as confirmed and looking into creating a PR to fix it.

Marking as confirmed and looking into creating a PR to fix it.
Alaska added
Module
Nodes & Physics
Status
Confirmed
Interest
Physics
and removed
Status
Needs Triage
labels 2024-11-25 02:10:27 +01:00
Alaska added this to the 4.3 milestone 2024-11-25 02:10:31 +01:00
Alaska changed title from quick explode error to Quick explode Python error due to removal of EEVEE Legacy API 2024-11-25 02:30:55 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2024-11-25 10:53:52 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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 & 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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#130822
No description provided.