Skip to content

Commit

Permalink
Fix: Property "paste" now works for non-NiProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
corwinn authored and amorilia committed Sep 6, 2012
1 parent 5f15d2b commit ab8bc18
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spells/blocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,18 @@ void blockLink( NifModel * nif, const QModelIndex & index, const QModelIndex & i
}
}
}
/*
* Temporary workaround for non-NiProperty properties
*/
else if ( nif->getBlockName( iBlock ) == "BSLightingShaderProperty" )
{
addLink( nif, index, "Properties", nif->getBlockNumber( iBlock ) );
}
else if ( nif->inherits( iBlock, "BSShaderProperty") )
{
addLink( nif, index, "Properties", nif->getBlockNumber( iBlock ) );
}

else if ( nif->inherits( index, "NiAVObject" ) && nif->inherits( iBlock, "NiExtraData" ) )
{
addLink( nif, index, "Extra Data List", nif->getBlockNumber( iBlock ) );
Expand Down

0 comments on commit ab8bc18

Please sign in to comment.