-
-
Notifications
You must be signed in to change notification settings - Fork 459
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update flecs::ref to store world instead of stage (#913)
* update ecs_get_ref_id() to handle staged world Encountered a case using the C++ api where an assert() hit when using `get_ref().get()`. This was because the world inside the `flecs::ref` was actually a stage, and not the world. Updated `ecs_get_ref_id()` to convert stage to world during lookup. * Revert "update ecs_get_ref_id() to handle staged world" This reverts commit 1ca55e4. * convert stage to world in flecs::ref constructor From feedback on PR, moved the conversion of stage into workd to the constructor for flecs::ref.
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters