data: avoid duplicate access components
* added check to make sure that an access component does not already exist before inserting it into the database
This commit is contained in:
@@ -440,7 +440,7 @@ void Node::addComponentAccess(std::shared_ptr<TokenComponentAccess> component)
|
||||
{
|
||||
if (getComponent<TokenComponentAccess>())
|
||||
{
|
||||
LOG_ERROR("TokenComponentAccess has been set before!");
|
||||
LOG_WARNING("TokenComponentAccess has been set before!");
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user