Browse Source

GDScript: Enable built-in function introspection in non-tools

Only for debug builds. Fix problems in non-tools targets.
George Marques 7 years ago
parent
commit
a62f4af7ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gdscript_functions.cpp

+ 1 - 1
modules/gdscript/gdscript_functions.cpp

@@ -1412,7 +1412,7 @@ bool GDScriptFunctions::is_deterministic(Function p_func) {
 
 
 MethodInfo GDScriptFunctions::get_info(Function p_func) {
 MethodInfo GDScriptFunctions::get_info(Function p_func) {
 
 
-#ifdef TOOLS_ENABLED
+#ifdef DEBUG_ENABLED
 	//using a switch, so the compiler generates a jumptable
 	//using a switch, so the compiler generates a jumptable
 
 
 	switch (p_func) {
 	switch (p_func) {