Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Validation error on "unset" model/material properties #175

Open Qaomen opened 5 years ago

Qaomen commented 5 years ago

Expected behavior Level validation is valid. Hah.

Actual behavior Some editor properties that aren't set to anything are set to null, which doesn't pass validation because a string (uuid) is expected. This is currently the case for PrefabObject.model and ChildMesh.material. Validation also warns about removed texture and material properties, which are removed on publish for server.

Reproduction steps

  1. Open the editor.
  2. Add a prefab with a prefab object. Don't set a model.
  3. Attempt to export the project.
  4. The level validation code prints a warning in the console.

Additional context Other than the warning and the value being reset, this doesn't seem to cause problems when loading the project.