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>
monroegm-disable-blank-issue-2
carlitosan 4 years ago committed by GitHub
parent be783e2c3c
commit 50128e7a7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save