forked from blender/blender
Refactor code after PR #57 #67
No reviewers
Labels
No Label
No Milestone
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: BogdanNagirniak/blender#67
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "hydra-object_data-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose
Some code has to be refactored after #57:
This is preparation for instancing curves and volumes.
Technical steps
IdData
andObjectData
, adjusted child classes.WorldData: LightData
.ObjectData::get_or_create_material()
, simplified child classes.MaterialPreview
.See comment.
@ -104,3 +104,3 @@
}
pxr::VtValue VolumeData::get_data(pxr::SdfPath const &id, pxr::TfToken const &key) const
pxr::VtValue VolumeData::get_data(pxr::TfToken const &key) const
Must be
get_data(pxr::SdfPath const &id, pxr::TfToken const &key) const
sinceid
here is field name.Also change back
prim_id.GetName();
->id.GetName();
No,
VolumeData::get_data(pxr::TfToken const &key)
should be here. By defaultYes, you are right. Fixed.
Approved.
Works fine.