Skip to content

Commit

Permalink
removed unused model_props file and folded model_getset and model_loa…
Browse files Browse the repository at this point in the history
…d into model.cc.

for faster builds and fewer things
  • Loading branch information
rtv committed Dec 2, 2011
1 parent 41f999b commit 4de1b77
Show file tree
Hide file tree
Showing 10 changed files with 523 additions and 1,097 deletions.
17 changes: 9 additions & 8 deletions libstage/CMakeLists.txt
Expand Up @@ -20,10 +20,8 @@ set( stageSrcs
model_camera.cc
model_draw.cc
model_fiducial.cc
model_getset.cc
model_gripper.cc
model_lightindicator.cc
model_load.cc
model_position.cc
model_ranger.cc
option.cc
Expand All @@ -35,14 +33,17 @@ set( stageSrcs
typetable.cc
world.cc
worldfile.cc
canvas.cc
options_dlg.cc
options_dlg.hh
vis_strip.cc
worldgui.cc
ancestor.cc
canvas.cc
options_dlg.cc
options_dlg.hh
vis_strip.cc
worldgui.cc
ancestor.cc
)

# model_getset.cc
# model_load.cc

#set_source_files_properties( ${stageSrcs} PROPERTIES COMPILE_FLAGS" )

add_library(stage SHARED ${stageSrcs})
Expand Down
3 changes: 1 addition & 2 deletions libstage/block.cc
Expand Up @@ -209,8 +209,7 @@ void Block::Map( unsigned int layer )
}

// now calculate the global pixel coords of the block vertices
std::vector<point_int_t> gpts;
mod->LocalToPixels( mpts, gpts );
const std::vector<point_int_t> gpts = mod->LocalToPixels( mpts );

// and render this block's polygon into the world
mod->world->MapPoly( gpts, this, layer );
Expand Down

0 comments on commit 4de1b77

Please sign in to comment.