Fix: remove unnecessary manual user count
`tree_sharing_info_` is automatically user-counted now.
This commit is contained in:
@@ -83,12 +83,7 @@ VolumeGridData::VolumeGridData(std::function<std::shared_ptr<openvdb::GridBase>(
|
||||
tree_access_token_ = std::make_shared<AccessToken>();
|
||||
}
|
||||
|
||||
VolumeGridData::~VolumeGridData()
|
||||
{
|
||||
if (tree_sharing_info_) {
|
||||
tree_sharing_info_->remove_user_and_delete_if_last();
|
||||
}
|
||||
}
|
||||
VolumeGridData::~VolumeGridData() = default;
|
||||
|
||||
void VolumeGridData::delete_self()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user