From efda16ac56c2d6b0a70fca996673fabb9f35d4d1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 30 Jun 2007 15:40:23 +0000 Subject: [PATCH] From Stephan Huber, "attached you'll find a small fix for the 3ds-plugin, so 3ds-files exported from cinema 4d are imported correctly. It's not cinema's fault, because the 3ds-files show up correctly in 3dStudio Max." --- src/osgPlugins/3ds/material.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgPlugins/3ds/material.cpp b/src/osgPlugins/3ds/material.cpp index 60463cb61..35371d045 100644 --- a/src/osgPlugins/3ds/material.cpp +++ b/src/osgPlugins/3ds/material.cpp @@ -100,6 +100,10 @@ color_read(Lib3dsRgba rgb, FILE *f) rgb[3]=1.0f; } break; + case LIB3DS_COLOR_F: + // sth: this will fix 3ds-files exported from cinema 4d + lib3ds_rgb_read(rgb, f); + break; default: lib3ds_chunk_unknown(chunk); }