fixed bug with restarting pointer-style global animations when moving mouse
authorHolger Schemel <info@artsoft.org>
Thu, 25 Apr 2019 17:06:11 +0000 (19:06 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 25 Apr 2019 17:06:11 +0000 (19:06 +0200)
src/anim.c

index 3b96adfa55d0b9f1d11d9cd1c9f32e08cd9ac6e7..e603a9d38a0e3760e616a83f623db24c2aac39d1 100644 (file)
@@ -933,7 +933,8 @@ static boolean SetGlobalAnimPart_Viewport(struct GlobalAnimPartControlInfo *part
     part->viewport_width  = viewport_width;
     part->viewport_height = viewport_height;
 
-    changed = TRUE;
+    if (part->control_info.class != get_hash_from_key("pointer"))
+      changed = TRUE;
   }
 
   return changed;