-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor InstanceId
#999
Refactor InstanceId
#999
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wish github had a way to hide "trivial renames" in addition to white-space. Couple of very small nits but overall looks good.
/// A special value indicating that this [`Instance]` is referring to all instances, | ||
/// for instance all points in a point cloud entity. | ||
/// | ||
/// In some contexts it is also used to mean no instances. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems unexpected and probably needs a few more words.
The fact that InstancePathHash::None
happens to specify SPLAT
makes sense.
Are there other contexts where SPLAT means none?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the comment. It wasn't even correct. Even in an InstancePath
, SPLAT
means "all the instances of the entity".
crates/re_viewer/src/ui/view_spatial/scene/scene_part/images.rs
Outdated
Show resolved
Hide resolved
Also, agree with the proposed rename |
This simplifies and renamed
InstanceId
toInstancePath
(because that is what it is).I wonder if
Instance
should be renamedInstanceIndex
orInstanceId
, since the concept "instance" means an instance of an entity, e.g. a point in a point cloud.Checklist
CHANGELOG.md
(if this is a big enough change to warrant it)