[WithDisabled(typeof(ActiveCancelDuration))]
[BurstCompile]
private partial struct CancelJob : IJobEntity
{
private static void Execute(EnabledRefRW<ActiveCancelDuration> activeCancelDuration)
{
activeCancelDuration.ValueRW = true;
}
}```
Generates this query
```cs
DefaultQuery =
entityQueryBuilder
.WithDisabled<global::BovineLabs.Reaction.Data.ActiveCancelDuration>()
.Build(ref state);```
But this should be generating .WithDisabledRW
@steel glacier
#[BUG] WithDisabled and EnabledRefRW adds wrong dependency in IJobEntity
1 messages · Page 1 of 1 (latest)
Will make a bug report on weekend
No need, I've already filed a bug internally (assigned to @steel glacier)
Could this be why I get an error about duplicate components when using a EnabledRefRW+RefRW for the same component even though that's supposed to be fixed according to the changelog, but I'm also using a WithDisabled attribute?
Possibly; I'll ask the dev who made that fix if that case should be handled
Thank you! I just saw that 1.2.0 is out, do you know if it should fix this?
Unfortunately not, sorry; it didn't quite make the release cutoff. There will most likely be a bugfix release for 1.2 soon, and if so it would be included there.