Skip to content

Commit

Permalink
Interactive: Render dragged entity like any other in-scene entity
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jun 30, 2018
1 parent 4555e9a commit 94d5e00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/gui/Cursor.cpp
Expand Up @@ -295,9 +295,7 @@ bool Manage3DCursor(Entity * io, bool simulate, bool draginter) {
DrawEERIEInter(io->obj, t, io, false, invisibility);
} else {
io->show = SHOW_FLAG_IN_SCENE;
TransformInfo t(pos, rotation, io->scale);
float invisibility = Cedric_GetInvisibility(io);
DrawEERIEInter(io->obj, t, io, false, invisibility);
// Entity will be rendered with the rest of the in-scene entities
}
}
} else {
Expand Down
1 change: 0 additions & 1 deletion src/scene/Interactive.cpp
Expand Up @@ -2226,7 +2226,6 @@ void RenderInter() {
Entity * io = entities[handle];

if( !io
|| io == DRAGINTER
|| !(io->gameFlags & GFLAG_ISINTREATZONE)
|| io->show != SHOW_FLAG_IN_SCENE
|| (io->ioflags & IO_CAMERA)
Expand Down

0 comments on commit 94d5e00

Please sign in to comment.