Closed Pshy0 closed 5 months ago
Since you simplify Engine.is_editor_hint() calls, you can also get rid of @tool.
Engine.is_editor_hint()
@tool
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
Implemented in 461016c29c418713028e797822ab04b83d51fa50. Thanks for the suggestion!
Since you simplify
Engine.is_editor_hint()
calls, you can also get rid of@tool
.