{lyn7307} disable saving procedural prefabs in the Editor (#4877)

disable saving procedural prefabs in the Editor since the templates are backed by asset files that will change outside the Editor


Signed-off-by: jackalbe <23512001+jackalbe@users.noreply.github.com>
monroegm-disable-blank-issue-2
Allen Jackson 4 years ago committed by GitHub
parent 1e11df5d92
commit 76b2932cae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -815,7 +815,8 @@ namespace AzToolsFramework
if (templateRef.has_value())
{
return templateRef->get().IsDirty();
return !templateRef->get().IsProcedural() && // all procedural prefabs are read-only
templateRef->get().IsDirty();
}
return false;

Loading…
Cancel
Save