{LYN-2336} Fix: Python Console script help opens empty (#3060)
* {LYN-2336} Fix: Python Console script help opens empty
Fixes: Python Console: Script Help opens empty in AutomatedTesting project
This fixes the missing Python symbols in the Editor
This also fixes the PYI files to write out for the AutomatedTesting project
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
* Fixing proper symbol log execution times
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
* annotating input values with const
Signed-off-by: Jackson <23512001+jackalbe@users.noreply.github.com>
This commit is contained in:
@@ -756,7 +756,7 @@ namespace EditorPythonBindings
|
||||
}
|
||||
|
||||
AZStd::string subModuleName = pybind11::cast<AZStd::string>(subModule.attr("__name__"));
|
||||
PythonSymbolEventBus::Broadcast(&PythonSymbolEventBus::Events::LogClassMethod, subModuleName, globalMethodName, behaviorClass, behaviorMethod);
|
||||
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::LogClassMethod, subModuleName, globalMethodName, behaviorClass, behaviorMethod);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -782,7 +782,7 @@ namespace EditorPythonBindings
|
||||
pybind11::setattr(subModule, constantPropertyName.c_str(), constantValue);
|
||||
|
||||
AZStd::string subModuleName = pybind11::cast<AZStd::string>(subModule.attr("__name__"));
|
||||
PythonSymbolEventBus::Broadcast(&PythonSymbolEventBus::Events::LogGlobalProperty, subModuleName, constantPropertyName, behaviorProperty);
|
||||
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::LogGlobalProperty, subModuleName, constantPropertyName, behaviorProperty);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -809,11 +809,11 @@ namespace EditorPythonBindings
|
||||
{
|
||||
return ConstructPythonProxyObjectByTypename(behaviorClassName, pythonArgs);
|
||||
});
|
||||
PythonSymbolEventBus::Broadcast(&PythonSymbolEventBus::Events::LogClassWithName, subModuleName, behaviorClass, properSyntax);
|
||||
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::LogClassWithName, subModuleName, behaviorClass, properSyntax);
|
||||
}
|
||||
else
|
||||
{
|
||||
PythonSymbolEventBus::Broadcast(&PythonSymbolEventBus::Events::LogClass, subModuleName, behaviorClass);
|
||||
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::LogClass, subModuleName, behaviorClass);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user