Skip to content

Commit

Permalink
missing ;
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Apr 19, 2016
1 parent add010a commit 3a92a70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion src/editor/import_asset_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ struct ConvertTask : public Lumix::MT::Task
{
const aiBone* bone = mesh.mesh->mBones[j];
int bone_index = getNodeIndex(bone);
ASSERT(bone_index >= 0)
ASSERT(bone_index >= 0);
for (unsigned int k = 0; k < bone->mNumWeights; ++k)
{
int idx = mesh.map_from_input[bone->mWeights[k].mVertexId];
Expand Down Expand Up @@ -2309,6 +2309,15 @@ void ImportAssetDialog::checkTask(bool wait)

void ImportAssetDialog::onGUI()
{
static bool once = false;
if (!once)
{
createBillboard(Lumix::Path("models/trees/pine1.msh"), Lumix::Path("a.tga"), m_editor.getEngine(), 256);
createBillboard(Lumix::Path("models/trees/pine3.msh"), Lumix::Path("b.tga"), m_editor.getEngine(), 256);
createBillboard(Lumix::Path("models/utils/cube/cube.msh"), Lumix::Path("c.tga"), m_editor.getEngine(), 256);
once = true;
}

if (ImGui::BeginDock("Import Asset", &m_is_opened))
{
if (hasMessage())
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/render_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3203,7 +3203,7 @@ class RenderSceneImpl : public RenderScene
model->getPose(*r.pose);
}
r.matrix = m_universe.getMatrix(r.entity);
ASSERT(!r.meshes || r.custom_meshes)
ASSERT(!r.meshes || r.custom_meshes);
if (r.meshes)
{
allocateCustomMeshes(r, model->getMeshCount());
Expand Down

0 comments on commit 3a92a70

Please sign in to comment.