[Bf-blender-cvs] [ed3cf06075f] temp-mesh-cpp: Cleanup

Hans Goudey noreply at git.blender.org
Mon Apr 18 17:22:59 CEST 2022


Commit: ed3cf06075fe3af9d82a7c00bbba02a3d85ec547
Author: Hans Goudey
Date:   Mon Apr 18 10:22:52 2022 -0500
Branches: temp-mesh-cpp
https://developer.blender.org/rBed3cf06075fe3af9d82a7c00bbba02a3d85ec547

Cleanup

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

M	source/blender/editors/object/object_modifier.cc

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

diff --git a/source/blender/editors/object/object_modifier.cc b/source/blender/editors/object/object_modifier.cc
index 89bca8d76cf..c31219455b4 100644
--- a/source/blender/editors/object/object_modifier.cc
+++ b/source/blender/editors/object/object_modifier.cc
@@ -3316,14 +3316,14 @@ static int geometry_node_tree_copy_assign_exec(bContext *C, wmOperator *op)
 
   NodesModifierData *nmd = (NodesModifierData *)md;
   bNodeTree *tree = nmd->node_group;
-  if (tree == NULL) {
+  if (tree == nullptr) {
     return OPERATOR_CANCELLED;
   }
 
   bNodeTree *new_tree = (bNodeTree *)BKE_id_copy_ex(
-      bmain, &tree->id, NULL, LIB_ID_COPY_ACTIONS | LIB_ID_COPY_DEFAULT);
+      bmain, &tree->id, nullptr, LIB_ID_COPY_ACTIONS | LIB_ID_COPY_DEFAULT);
 
-  if (new_tree == NULL) {
+  if (new_tree == nullptr) {
     return OPERATOR_CANCELLED;
   }



More information about the Bf-blender-cvs mailing list