Commit 9747f799 authored by Tommé Nöll's avatar Tommé Nöll
Browse files

fixed script blocking prefab creation

parent dd7191c2
......@@ -32,7 +32,7 @@ public class NotifyForLockedFiles : UnityEditor.AssetModificationProcessor
for (int i = 0; i < paths.Length; ++i)
{
FileInfo info = new FileInfo(paths[i]);
if (info.IsReadOnly)
if (info.IsReadOnly && info.Extension == ".unity")
UnityEditor.EditorUtility.DisplayDialog("Konnte nicht speichern",
"Die Scene " + paths[i] + " ist Read-Only. Sie konnte nicht gespeichert werden. Sie kann aber unter anderem Namen gespeichert werden.",
"Ok");
......@@ -67,7 +67,7 @@ public class NotifyForLockedFiles : UnityEditor.AssetModificationProcessor
if (!BuildPipeline.isBuildingPlayer)
{
FileInfo info = new FileInfo(newScene.path);
if (info.IsReadOnly)
if (info.IsReadOnly && info.Extension == ".unity")
{
UnityEditor.EditorUtility.DisplayDialog("Read-Only", "Die Scene " + newScene.path + " ist Read-Only. Sie wird nicht gespeichert werden können.", "Ok");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment