Skip to content

Commit

Permalink
FIXED loading of composite models
Browse files Browse the repository at this point in the history
  • Loading branch information
ksterker committed Mar 22, 2010
1 parent 1eb2e60 commit 23ec804
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modeller/gui_modeller.cc
Expand Up @@ -446,9 +446,11 @@ void GuiModeller::loadModel (const std::string & name)
// found model data
if (strcmp ("model", id) == 0)
{
base::flat mdl ((const char*) value, size);

// load model
world::placeable_model * model = new world::placeable_model ();
model->get_state (placeable);
model->get_state (mdl);

// and add it to the UI
addModel (model);
Expand Down

0 comments on commit 23ec804

Please sign in to comment.