From ea276afef7233f4ae32af2cc0b30074853c98b23 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Tue, 23 Mar 2021 20:27:06 +0100 Subject: [PATCH] fix wrong static usage on PerElement PlyInfo --- wrap/io_trimesh/io_mask.h | 2 +- wrap/io_trimesh/io_ply.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wrap/io_trimesh/io_mask.h b/wrap/io_trimesh/io_mask.h index 8fa7d251..aafff054 100644 --- a/wrap/io_trimesh/io_mask.h +++ b/wrap/io_trimesh/io_mask.h @@ -66,7 +66,7 @@ public: enum { IOM_NONE = 0x00000, - IOM_VERTCOORD = 0x00001, + IOM_VERTCOORD = 0x00001, IOM_VERTFLAGS = 0x00002, IOM_VERTCOLOR = 0x00004, IOM_VERTQUALITY = 0x00008, diff --git a/wrap/io_trimesh/io_ply.h b/wrap/io_trimesh/io_ply.h index d0cfc042..5a504784 100644 --- a/wrap/io_trimesh/io_ply.h +++ b/wrap/io_trimesh/io_ply.h @@ -69,8 +69,8 @@ public: void AddPerElemFloatAttribute(int elemType, const char *attrName, const char * propName=0) { static const char *elemStr[2]={"vertex","face"}; - static std::vector *elemDescVec[2]={&(this->VertDescriptorVec), &(this->FaceDescriptorVec)}; - static std::vector *elemNameVec[2]={&(this->VertAttrNameVec), &(this->FaceAttrNameVec)}; + std::vector *elemDescVec[2]={&(this->VertDescriptorVec), &(this->FaceDescriptorVec)}; + std::vector *elemNameVec[2]={&(this->VertAttrNameVec), &(this->FaceAttrNameVec)}; if(propName==0) propName=attrName; elemDescVec[elemType]->push_back(PropDescriptor());