Changing DecalGenerator not working for weapons

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Player701
 
 
Posts: 1383
Joined: Wed May 13, 2009 3:15 am
Discord: Player701#8214
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support
Location: Russia

Changing DecalGenerator not working for weapons

Post by Player701 »

Exactly what it says on the tin. The weapon will always use its default decal generator regardless of any changes made to its DecalGenerator field.

The cause of this is that SpawnShootDecal uses the weapon's default value of DecalGenerator when spawning the decal. I have no idea why that "GetDefault()->" is present there. Removing it doesn't seem to break anything, and changing DecalGenerator starts working normally.

PR with the fix.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 47962
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Changing DecalGenerator not working for weapons

Post by Graf Zahl »

That seems to be something very, very old that never got noticed...

Return to “Closed Bugs”