dalexeev / gdscript-preprocessor

An export plugin for stripping comments and "conditional compilation" of GDScript.
MIT License
78 stars 1 forks source link

Strip `@tool` away from pre-processed sources. #6

Closed Pshy0 closed 5 months ago

Pshy0 commented 5 months ago

Since you simplify Engine.is_editor_hint() calls, you can also get rid of @tool.

dalexeev commented 5 months ago

It is already configurable, but we can make this the default behavior.

https://github.com/dalexeev/gdscript-preprocessor/blob/abe1993e2d8db9a3c6a67c1678366491adcbe4f6/addons/gdscript_preprocessor/export_plugin.gd#L28

dalexeev commented 5 months ago

Implemented in 461016c29c418713028e797822ab04b83d51fa50. Thanks for the suggestion!