Преглед изворни кода

fix ObjectFollower followVisibility for objects outside cam frustum

trethaller пре 4 година
родитељ
комит
e2a202e28b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      h2d/ObjectFollower.hx

+ 1 - 1
h2d/ObjectFollower.hx

@@ -131,7 +131,7 @@ class ObjectFollower extends Object {
 
 	override function drawRec(ctx:RenderContext) {
 
-		if( !visible || zValue < 0 )
+		if( !visible || zValue < 0 || zValue > 1 )
 			return;
 		if( followVisibility ) {
 			var parent = follow;