BLEN-299: Export instances #11

Merged
Bogdan Nagirniak merged 7 commits from BLEN-299 into hydra-render 2023-03-05 09:37:12 +01:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit d93badf527 - Show all commits

View File

@ -31,8 +31,7 @@ pxr::SdfPath MaterialData::prim_id(BlenderSceneDelegate *scene_delegate, Materia
* Example: M_000002074e812088 */
char str[32];
snprintf(str, 32, "M_%016llx", (uint64_t)material);
//return scene_delegate->GetDelegateID().AppendElementString(str);
return scene_delegate->GetDelegateID().AppendElementString(((ID *)material)->name);
return scene_delegate->GetDelegateID().AppendElementString(str);
}
MaterialData::MaterialData(BlenderSceneDelegate *scene_delegate, Material *material)

View File

@ -57,8 +57,7 @@ pxr::SdfPath ObjectData::prim_id(BlenderSceneDelegate *scene_delegate, Object *o
* O_000002073e369608 */
char str[32];
snprintf(str, 32, "O_%016llx", (uint64_t)object);
//return scene_delegate->GetDelegateID().AppendElementString(str);
return scene_delegate->GetDelegateID().AppendElementString(((ID *)object)->name);
return scene_delegate->GetDelegateID().AppendElementString(str);
}
ObjectData::ObjectData(BlenderSceneDelegate *scene_delegate, Object *object)