asset browser: missing file

This commit is contained in:
Skarn
2020-11-15 00:49:07 +03:00
parent f18cd0ce4a
commit 5a59dca4dc
2 changed files with 86 additions and 1 deletions

View File

@@ -97,12 +97,13 @@ void AsyncLoader::process()
std::lock_guard<std::mutex> const lock(_guard);
object->error_on_loading();
_currently_loading.remove(object);
if (object->is_required_when_saving())
{
_important_object_failed_loading = true;
}
_currently_loading.remove(object);
}
}
}

View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AssetBrowser</class>
<widget class="QWidget" name="AssetBrowser">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1342</width>
<height>744</height>
</rect>
</property>
<property name="acceptDrops">
<bool>true</bool>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QSplitter" name="splitter">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="QTreeView" name="listfileTree">
<property name="sizeIncrement">
<size>
<width>1</width>
<height>1</height>
</size>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOn</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOn</enum>
</property>
<property name="alternatingRowColors">
<bool>false</bool>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="uniformRowHeights">
<bool>false</bool>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<property name="animated">
<bool>true</bool>
</property>
<property name="headerHidden">
<bool>true</bool>
</property>
<property name="expandsOnDoubleClick">
<bool>false</bool>
</property>
</widget>
<widget class="noggit::Red::AssetBrowser::ModelViewer" name="openGLWidget">
<property name="minimumSize">
<size>
<width>720</width>
<height>720</height>
</size>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>noggit::Red::AssetBrowser::ModelViewer</class>
<extends>QOpenGLWidget</extends>
<header location="global">noggit/Red/AssetBrowser/ModelView.hpp</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>