Skip to content

Commit

Permalink
Allow adding/removing groups from frame animated models
Browse files Browse the repository at this point in the history
Enable adding and removing groups so that materials can be merged or
separated. Still can't create/remove geometry if there are frame
animations though.
  • Loading branch information
zturtleman committed May 23, 2020
1 parent 6ba054d commit 6515b20
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/libmm3d/model_group.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ int Model::addGroup( const char * name )
{
return -1;
}
if ( m_frameAnims.size() > 0 && !m_forceAddOrDelete)
{
displayFrameAnimPrimitiveError();
return -1;
}

m_changeBits |= AddOther;

Expand Down Expand Up @@ -75,11 +70,6 @@ bool Model::deleteGroup( unsigned groupNum )
{
return false;
}
if ( m_frameAnims.size() > 0 && !m_forceAddOrDelete)
{
displayFrameAnimPrimitiveError();
return false;
}

if ( groupNum >= m_groups.size() )
{
Expand Down

0 comments on commit 6515b20

Please sign in to comment.