Move to use blender::Map container instead std::unordered_map #47

Merged
Bogdan Nagirniak merged 17 commits from Vasyl-Pidhirskyi/blender_bn:BLEN-418 into hydra-render 2023-06-02 12:02:46 +02:00
3 changed files with 4 additions and 4 deletions
Showing only changes of commit 49013bffef - Show all commits

View File

@ -349,7 +349,7 @@ void BlenderSceneDelegate::update_objects(Object *object)
return;
}
objects_.add_overwrite(id, ObjectData::create(this, object, id));
objects_.add_new(id, ObjectData::create(this, object, id));
Vasyl-Pidhirskyi marked this conversation as resolved Outdated

seems like here should be add_new.

seems like here should be `add_new`.
obj_data = object_data(id);
obj_data->update_parent();
obj_data->init();
@ -386,7 +386,7 @@ void BlenderSceneDelegate::update_instancers(Object *object)
return;
}
instancers_.add_overwrite(id, std::make_unique<InstancerData>(this, object, id));
instancers_.add_new(id, std::make_unique<InstancerData>(this, object, id));
Vasyl-Pidhirskyi marked this conversation as resolved Outdated

seems like here should be add_new.

seems like here should be `add_new`.

use lookup_or_add_default

use `lookup_or_add_default`

implemented via lookup_or_add

implemented via `lookup_or_add`
i_data = instancer_data(id);
i_data->init();
i_data->insert();

View File

@ -199,7 +199,7 @@ void CurvesData::write_material()
pxr::SdfPath p_id = scene_delegate_->material_prim_id(mat);
mat_data_ = scene_delegate_->material_data(p_id);
if (!mat_data_) {
scene_delegate_->materials_.add_overwrite(
scene_delegate_->materials_.add_new(
Vasyl-Pidhirskyi marked this conversation as resolved Outdated

seems like here should be add_new.

seems like here should be `add_new`.
p_id, std::make_unique<MaterialData>(scene_delegate_, mat, p_id));
mat_data_ = scene_delegate_->material_data(p_id);
mat_data_->init();

View File

@ -304,7 +304,7 @@ void MeshData::write_materials()
pxr::SdfPath p_id = scene_delegate_->material_prim_id(mat);
m.mat_data = scene_delegate_->material_data(p_id);
if (!m.mat_data) {
scene_delegate_->materials_.add_overwrite(
scene_delegate_->materials_.add_new(
Vasyl-Pidhirskyi marked this conversation as resolved Outdated

seems like here should be add_new.

seems like here should be `add_new`.

lookup_or_add_default

`lookup_or_add_default`

implemented via lookup_or_add

implemented via `lookup_or_add`
p_id, std::make_unique<MaterialData>(scene_delegate_, mat, p_id));
m.mat_data = scene_delegate_->material_data(p_id);
m.mat_data->init();