-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Labels
Description
error:
NullReferenceException: Object reference not set to an instance of an object
unitycodercom_PointCloud2MeshConverter.PointCloud2MeshConverter.Convert2Mesh (System.String fileToRead) (at Assets/PointCloudTools/Editor/PointCloud2MeshConverter.cs:603)
unitycodercom_PointCloud2MeshConverter.PointCloud2MeshConverter.OnGUI () (at Assets/PointCloudTools/Editor/PointCloud2MeshConverter.cs:161)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
its fixed on next updated.
temporary fix: Open PointCloud2MeshConverter.cs
// find line
if (readRGB) colorArray = new Color[masterPointCount];
// replace with
if (readRGB == true || readIntensity == true) colorArray = new Color[masterPointCount];