File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -391,6 +391,8 @@ impl SparseSets {
391
391
self . relation_sets . get ( relation_kind)
392
392
}
393
393
394
+ // FIXME(Relationships): https://discord.com/channels/691052431525675048/749335865876021248/862199702825205760
395
+ // FIXME(Relationships): Deal with the ability to register components with a target, and relations without one
394
396
pub fn get_or_insert (
395
397
& mut self ,
396
398
relation_kind : & RelationKindInfo ,
Original file line number Diff line number Diff line change @@ -190,15 +190,7 @@ impl World {
190
190
& mut self ,
191
191
descriptor : ComponentDescriptor ,
192
192
) -> Result < RelationKindId , RelationsError > {
193
- let storage_type = descriptor. storage_type ( ) ;
194
- let relation_kind = self . components . new_relationship_kind ( descriptor) ?;
195
-
196
- // ensure sparse set is created for SparseSet components
197
- if storage_type == StorageType :: SparseSet {
198
- self . storages . sparse_sets . get_or_insert ( relation_kind, None ) ;
199
- }
200
-
201
- Ok ( relation_kind. id ( ) )
193
+ Ok ( self . components . new_relationship_kind ( descriptor) ?. id ( ) )
202
194
}
203
195
204
196
/// Retrieves an [EntityRef] that exposes read-only operations for the given `entity`.
You can’t perform that action at this time.
0 commit comments