提交 9ac2a850 编写于 作者: R Rob Taglang

C99 stack allocations not valid in MSVC

上级 5543a7e9
......@@ -1779,8 +1779,8 @@ bool COLLADA2GLTF::Writer::writeController(const COLLADAFW::Controller* controll
GLTF::Accessor* baseAccessor = baseAttributeEntry.second;
GLTF::Accessor* targetAccessor = new GLTF::Accessor(findAttribute->second);
size_t numComponents = baseAccessor->getNumberOfComponents();
float baseComponent[numComponents];
float targetComponent[numComponents];
float* baseComponent = new float[numComponents];
float* targetComponent = new float[numComponents];
for (size_t j = 0; j < baseAccessor->count && j < targetAccessor->count; j++) {
baseAccessor->getComponentAtIndex(j, baseComponent);
targetAccessor->getComponentAtIndex(j, targetComponent);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册