1
0
mirror of synced 2025-02-26 06:49:45 +01:00

Quick adjustment to visibility

This commit is contained in:
KillzXGaming 2020-05-10 11:20:20 -04:00
parent 719e1b107c
commit 8a8ac6830e

View File

@ -128,14 +128,15 @@ namespace FirstPlugin
{ {
GFBMDL model = null; GFBMDL model = null;
foreach (var container in ObjectEditor.GetDrawableContainers()) { foreach (var container in ObjectEditor.GetDrawableContainers()) {
if (container.ContainerState == ContainerState.Active) {
foreach (var drawable in container.Drawables) foreach (var drawable in container.Drawables)
{ {
if (!drawable.Visible)
continue;
if (drawable is GFBMDL_Render) if (drawable is GFBMDL_Render)
model = ((GFBMDL_Render)drawable).GfbmdlFile; model = ((GFBMDL_Render)drawable).GfbmdlFile;
} }
} }
}
return model; return model;
} }
} }