[Bf-blender-cvs] [04cf8081e6b] temp-node-error-messages: Clear messages before evaluation

Hans Goudey noreply at git.blender.org
Wed Feb 3 04:04:18 CET 2021


Commit: 04cf8081e6b0aaa2561a4dd1b965da846948d9ff
Author: Hans Goudey
Date:   Tue Feb 2 20:30:22 2021 -0600
Branches: temp-node-error-messages
https://developer.blender.org/rB04cf8081e6b0aaa2561a4dd1b965da846948d9ff

Clear messages before evaluation

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

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 242dce2627e..0fc28f02a6e 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -247,7 +247,9 @@ class GeometryNodesEvaluator {
 
   Vector<GMutablePointer> execute()
   {
-    BKE_nodetree_error_messages_clear(&btree_);
+    ID *original_id = DEG_get_original_id(&(ID &)btree_);
+    BKE_nodetree_error_messages_clear((bNodeTree *)original_id);
+
     Vector<GMutablePointer> results;
     for (const DInputSocket *group_output : group_outputs_) {
       GMutablePointer result = this->get_input_value(*group_output);



More information about the Bf-blender-cvs mailing list