[Bf-blender-cvs] [b277025d8ef] geometry-nodes: Geometry Nodes: Add modifier disabled check

Hans Goudey noreply at git.blender.org
Thu Nov 12 18:16:38 CET 2020


Commit: b277025d8ef79a996410024a8b7130db8e90bf84
Author: Hans Goudey
Date:   Thu Nov 12 12:16:32 2020 -0500
Branches: geometry-nodes
https://developer.blender.org/rBb277025d8ef79a996410024a8b7130db8e90bf84

Geometry Nodes: Add modifier disabled check

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

M	source/blender/modifiers/intern/MOD_nodes.cc

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

diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index 28d01a266f2..8e7a6e31d1b 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -165,7 +165,11 @@ static bool isDisabled(const struct Scene *UNUSED(scene),
                        bool UNUSED(useRenderParams))
 {
   NodesModifierData *nmd = reinterpret_cast<NodesModifierData *>(md);
-  UNUSED_VARS(nmd);
+
+  if (nmd->node_group == nullptr) {
+    return true;
+  }
+
   return false;
 }



More information about the Bf-blender-cvs mailing list