Quick adjustment to visibility
This commit is contained in:
parent
719e1b107c
commit
8a8ac6830e
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user