{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:
@@ -153,7 +153,7 @@ namespace EditorPythonBindings
|
||||
StaticPropertyHolderMapEntry& entry = iter->second;
|
||||
entry.second->AddProperty(propertyName, behaviorProperty);
|
||||
}
|
||||
PythonSymbolEventBus::Broadcast(&PythonSymbolEventBus::Events::LogGlobalProperty, scopeName, propertyName, behaviorProperty);
|
||||
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::LogGlobalProperty, scopeName, propertyName, behaviorProperty);
|
||||
}
|
||||
|
||||
pybind11::module DetermineScope(pybind11::module scope, const AZStd::string& fullName)
|
||||
@@ -302,7 +302,7 @@ namespace EditorPythonBindings
|
||||
|
||||
// log global method symbol
|
||||
AZStd::string subModuleName = pybind11::cast<AZStd::string>(targetModule.attr("__name__"));
|
||||
PythonSymbolEventBus::Broadcast(&PythonSymbolEventBus::Events::LogGlobalMethod, subModuleName, methodName, behaviorMethod);
|
||||
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::LogGlobalMethod, subModuleName, methodName, behaviorMethod);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -325,7 +325,7 @@ namespace EditorPythonBindings
|
||||
|
||||
// log global property symbol
|
||||
AZStd::string subModuleName = pybind11::cast<AZStd::string>(globalsModule.attr("__name__"));
|
||||
PythonSymbolEventBus::Broadcast(&PythonSymbolEventBus::Events::LogGlobalProperty, subModuleName, propertyName, behaviorProperty);
|
||||
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::LogGlobalProperty, subModuleName, propertyName, behaviorProperty);
|
||||
|
||||
if (behaviorProperty->m_getter && behaviorProperty->m_setter)
|
||||
{
|
||||
@@ -377,7 +377,7 @@ namespace EditorPythonBindings
|
||||
PythonProxyBusManagement::CreateSubmodule(parentModule);
|
||||
Internal::RegisterPaths(parentModule);
|
||||
|
||||
PythonSymbolEventBus::Broadcast(&PythonSymbolEventBus::Events::Finalize);
|
||||
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::Finalize);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user