[Bf-blender-cvs] [fa5190e742e] geometry-nodes: fix after merge

Jacques Lucke noreply at git.blender.org
Mon Nov 9 15:55:31 CET 2020


Commit: fa5190e742e2e002fdfad6d5398ae5e58c9ec6d9
Author: Jacques Lucke
Date:   Mon Nov 9 15:55:24 2020 +0100
Branches: geometry-nodes
https://developer.blender.org/rBfa5190e742e2e002fdfad6d5398ae5e58c9ec6d9

fix after merge

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

M	source/blender/blenkernel/intern/pointcloud.cc

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

diff --git a/source/blender/blenkernel/intern/pointcloud.cc b/source/blender/blenkernel/intern/pointcloud.cc
index a6d6fb97e7d..f6a2beb9767 100644
--- a/source/blender/blenkernel/intern/pointcloud.cc
+++ b/source/blender/blenkernel/intern/pointcloud.cc
@@ -232,8 +232,8 @@ void *BKE_pointcloud_add_default(Main *bmain, const char *name)
 
 PointCloud *BKE_pointcloud_new_nomain(const int totpoint)
 {
-  PointCloud *pointcloud = BKE_libblock_alloc(
-      NULL, ID_PT, BKE_idtype_idcode_to_name(ID_PT), LIB_ID_CREATE_LOCALIZE);
+  PointCloud *pointcloud = static_cast<PointCloud *>(
+      BKE_libblock_alloc(NULL, ID_PT, BKE_idtype_idcode_to_name(ID_PT), LIB_ID_CREATE_LOCALIZE));
 
   pointcloud_init_data(&pointcloud->id);



More information about the Bf-blender-cvs mailing list