fix: read Plant 3D model file references
This commit is contained in:
@@ -163,7 +163,9 @@ internal sealed class PlantOrthoViewportReader : IOrthoViewportReader
|
||||
if (files is null) return null;
|
||||
foreach (var file in files)
|
||||
{
|
||||
var value = file as string ?? file?.GetType().GetProperty("Value")?.GetValue(file)?.ToString();
|
||||
var value = file as string
|
||||
?? file?.GetType().GetProperty("ModelFileName")?.GetValue(file)?.ToString()
|
||||
?? file?.GetType().GetProperty("Value")?.GetValue(file)?.ToString();
|
||||
if (!string.IsNullOrWhiteSpace(value)) return value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user