TrenchBroom / TrenchBroom

Cross-Platform Level Editor
kristianduske.com/trenchbroom
GNU General Public License v3.0
1.88k stars 224 forks source link

Default properties not set for Worldspawn; not set when changing classname #4552

Open SirYodaJedi opened 1 month ago

SirYodaJedi commented 1 month ago

System Information

TrenchBroom V2024.1 Release Win64 on Windows 10 22H2

Expected Behavior

When setDefaultProperties is enabled (as it should be):

Neither of these occur. There are "set missing default properties" and "set all default properties" buttons, but it shouldn't be necessary to click these in these specific situations.

Steps to Reproduce

  1. Create a new map, using the Half-Life profile.
  2. Observe how keys such as MaxRange and sounds are not correctly set.
  3. Create a cycler_sprite point entity.
  4. Observe how the KVs have their proper defaults set.
  5. Change the cycler_sprite to an ambent_generic.
  6. Observe how keys such as spawnflags and health are not correctly set.