forked from blender/blender
Move to use blender::Map container instead std::unordered_map #47
@ -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
|
||||
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
Georgiy Markelov
commented
seems like here should be seems like here should be `add_new`.
Bogdan Nagirniak
commented
use use `lookup_or_add_default`
Vasyl Pidhirskyi
commented
implemented via implemented via `lookup_or_add`
|
||||
i_data = instancer_data(id);
|
||||
i_data->init();
|
||||
i_data->insert();
|
||||
|
@ -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
Georgiy Markelov
commented
seems like here should be 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();
|
||||
|
@ -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
Georgiy Markelov
commented
seems like here should be seems like here should be `add_new`.
Bogdan Nagirniak
commented
`lookup_or_add_default`
Vasyl Pidhirskyi
commented
implemented via 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();
|
||||
|
Loading…
Reference in New Issue
Block a user
seems like here should be
add_new
.