mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Decrement instead of increment queue value
This is a bit more intuitive since newer decals render over older ones
This commit is contained in:
parent
c1b34d21a4
commit
2f308c3ab6
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b805b02f176fc212845fd04be41bf49ab22eae5b8a92e6fa404dc05f93ae1ded
|
||||
oid sha256:0d77625cd9c185ff2773e829962cdff33b0e2a3bb9569bf545e134c4799526f9
|
||||
size 28160
|
||||
|
@ -50,7 +50,7 @@ namespace ConformalDecals {
|
||||
[KSPField] public MaterialPropertyCollection materialProperties;
|
||||
[KSPField] public Material decalMaterial;
|
||||
|
||||
private static int _decalQueueCounter = -1;
|
||||
private static int _decalQueueCounter = 0;
|
||||
|
||||
private List<ProjectionTarget> _targets;
|
||||
|
||||
@ -63,9 +63,9 @@ namespace ConformalDecals {
|
||||
|
||||
private int DecalQueue {
|
||||
get {
|
||||
_decalQueueCounter++;
|
||||
if (_decalQueueCounter > decalQueueRange.y || _decalQueueCounter < decalQueueRange.x) {
|
||||
_decalQueueCounter = (int) decalQueueRange.x;
|
||||
_decalQueueCounter--;
|
||||
if (_decalQueueCounter < decalQueueRange.x) {
|
||||
_decalQueueCounter = (int) decalQueueRange.y;
|
||||
}
|
||||
|
||||
this.Log($"returning decal queue value {_decalQueueCounter}");
|
||||
|
Loading…
Reference in New Issue
Block a user