Teardown-Issue-Tracker-Maintainers / Teardown-Issue-Tracker

A public repo for the community to track issues/bugs/feature requests in Teardown.
12 stars 5 forks source link

[Bug] Scripts run when previewing xml in Content explorer #397

Open Malar10 opened 11 months ago

Malar10 commented 11 months ago

Describe the bug

Hovering over an xml file in the content explorer will cause any scripts included in it to be run.

Steps to reproduce the behavior

  1. Open level editor
  2. Open Content explorer
  3. Make sure the "Preview" checkbox is ticked
  4. Hover over your level xml file
  5. Any scripts included in the xml will get run (init, tick, update or draw won't be called)

Expected behavior

probably not supposed to happen

(though it would be nice to have scripts for the editor as well)

Environment

Additional context

video example: https://youtu.be/2k9nE7ztSrQ

Level used in video: funny 6.zip

Malar10 commented 11 months ago

Here's another "demonstration" I did https://www.youtube.com/watch?v=1__9DmoU1Uk