[Bf-blender-cvs] [5c371cd36a8] master: Depsgraph: Fix condition inverted by mistake

Sergey Sharybin noreply at git.blender.org
Mon May 27 12:40:26 CEST 2019


Commit: 5c371cd36a8db2a322c52b5248061c1df01b0818
Author: Sergey Sharybin
Date:   Mon May 27 12:39:26 2019 +0200
Branches: master
https://developer.blender.org/rB5c371cd36a8db2a322c52b5248061c1df01b0818

Depsgraph: Fix condition inverted by mistake

Fixes T65165: Weights are not displayed in "Weight Paint" with modifiers

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

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

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

diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c
index 6b03d03f882..615a68dc176 100644
--- a/source/blender/blenkernel/intern/DerivedMesh.c
+++ b/source/blender/blenkernel/intern/DerivedMesh.c
@@ -2079,7 +2079,7 @@ static void object_get_datamask(const Depsgraph *depsgraph,
 
   /* Must never access original objects when dependency graph is not active: it might be already
    * freed. */
-  if (DEG_is_active(depsgraph)) {
+  if (!DEG_is_active(depsgraph)) {
     return;
   }



More information about the Bf-blender-cvs mailing list