Page MenuHome

Quick Explode is broken in 2.8
Closed, ResolvedPublic

Description

System Information
Operating system: macOS
Graphics card: Something from Intel.

Blender Version
Broken: 2.80 e4153946ad1e81c697b8d51d92a3e2f088d0af4d, blender2.8, 2018-12-11

Exact steps for others to reproduce the error
Open Blender, press F3, type quick explode, then press enter. Python error about name being required.

Solution
The following change in release/scripts/startup/bl_operators/object_quick_effects.py fixes the initial error:

             if self.fade:
                 explode.show_dead = False
-                uv = obj.data.uv_layers.new("Explode fade")
+                uv = obj.data.uv_layers.new(name="Explode fade")
                 explode.particle_uv = uv.name

But, then there are material errors; the old addon changed the old-style materials. Lines like this:

mat.use_transparency = True
mat.use_transparent_shadows = True
mat.alpha = 0.0
mat.specular_alpha = 0.0

I'm not familiar enough with the new materials in Python to fix that.

PS: macOS 2.8 build was outdated, so using my own build.