[Bf-blender-cvs] [4c12764a7f3] master: Fix negative boolean

Sergey Sharybin noreply at git.blender.org
Wed Jul 31 18:22:09 CEST 2019


Commit: 4c12764a7f3c9a41e0d72ba5e950fff1946f5b50
Author: Sergey Sharybin
Date:   Wed Jul 31 18:20:18 2019 +0200
Branches: master
https://developer.blender.org/rB4c12764a7f3c9a41e0d72ba5e950fff1946f5b50

Fix negative boolean

Was a nice looking invention, but is obviously wrong.

Is likely no function changes, since -false is like -0
which is 0 and which false. And -true is like -<non-zero> which
is non-zero as well.

Spotted by Sybren, thanks!

===================================================================

M	source/blender/blenkernel/intern/anim_sys.c

===================================================================

diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c
index 309112d4e72..c2fcb99a3be 100644
--- a/source/blender/blenkernel/intern/anim_sys.c
+++ b/source/blender/blenkernel/intern/anim_sys.c
@@ -3920,7 +3920,7 @@ void BKE_animsys_evaluate_all_animation(Main *main,
     printf("Evaluate all animation - %f\n", ctime);
   }
 
-  const bool flush_to_original = -DEG_is_active(depsgraph);
+  const bool flush_to_original = DEG_is_active(depsgraph);
 
   /* macros for less typing
    * - only evaluate animation data for id if it has users (and not just fake ones)



More information about the Bf-blender-cvs mailing list