On Friday, January 03, 2014 12:54:08 PM Rodney Rushing wrote:
> Happy New Year everybody!  
> 
> I've been tinkering to implement a new Groups Toolbar.  Perhaps the 
adventurous of you can play with it and give some beta feedback.
> 
> * Adds a new "Groups" toolbar/palette.
> 
> * Toolbars can now be docked side-by-side.
> [...]

Hi Rod,

Happy New Year to you too.

that sounds like cool features, I am currently trying to compile the code but 
am getting errors, e.g. here:


common/lc_model.cpp:587:48: error: cast from ‘Piece*’ to ‘int’ loses precision 
[-fpermissive]
   if (reinterpret_cast<int>(pPiece->m_pUtilNext) != visibility)


void lcModel::UtilEndTrackingPieceVisibility(int nStoryTime, bool 
bIsAnimation)
{
        for (Piece* pPiece = m_pPieces; pPiece; pPiece = pPiece->m_pNext)
        {
                int visibility = (pPiece->IsHidden() ? 1 : 0) | (pPiece-
>IsPresent(nStoryTime, bIsAnimation) ? 2 : 0);
                if (reinterpret_cast<int>(pPiece->m_pUtilNext) != visibility)
                        VisibilityChanged(pPiece);
        }
}

And I am wondering what is going on. pPiece->m_pUtilNext is a Piece* . Are you 
sure you want to compare that with an int between 0|0 and 2|1?

Compiling with gcc version 4.8.2 (Debian 4.8.2-1) 

Cheers


 Nicolas

-- 
Nicolas Guilbert
Maintainer of the Debian Leocad package

"Intelligence: property of a life form capable of outliving its planet of 
origin"

_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to