Fix for Lua properties not loading properly in play-in-editor. (#7369)
* debug information for lua script error Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com> * actual fix for script properties not being loaded in play-in-editor unless modified or editor restarted Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com> * remove debugging artifacts Signed-off-by: carlitosan <82187351+carlitosan@users.noreply.github.com>
This commit is contained in:
+1
@@ -783,6 +783,7 @@ namespace AzToolsFramework
|
||||
}
|
||||
|
||||
EBUS_EVENT(ToolsApplicationEvents::Bus, InvalidatePropertyDisplay, Refresh_EntireTree);
|
||||
ToolsApplicationRequests::Bus::Broadcast(&ToolsApplicationRequests::Bus::Events::AddDirtyEntity, GetEntityId());
|
||||
}
|
||||
|
||||
void ScriptEditorComponent::LoadProperties()
|
||||
|
||||
@@ -712,6 +712,7 @@ namespace ScriptCanvasEditor
|
||||
bool rollbackRequired = false;
|
||||
nodeEntity->Deactivate();
|
||||
RemoveNode(oldNode->GetEntityId());
|
||||
|
||||
nodeEntity->RemoveComponent(oldNode);
|
||||
|
||||
nodeEntity->AddComponent(newNode);
|
||||
|
||||
Reference in New Issue
Block a user