forked from blender/blender
BLEN-299: Export instances #11
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user