obj exporter: fail if vertex color export was requested
This commit is contained in:
@@ -53,6 +53,7 @@
|
|||||||
<li>ImporterT: Modified the add_face function of importerT to always return a valid FaceHandle</li>
|
<li>ImporterT: Modified the add_face function of importerT to always return a valid FaceHandle</li>
|
||||||
<li>ImporterT: Return a valid FaceHandle when adding non-manifold faces.</li>
|
<li>ImporterT: Return a valid FaceHandle when adding non-manifold faces.</li>
|
||||||
<li>BaseExporter: Added accessor functions for HalfEdgeHandles and faceTexCoords to base exporter and exporter template.</li>
|
<li>BaseExporter: Added accessor functions for HalfEdgeHandles and faceTexCoords to base exporter and exporter template.</li>
|
||||||
|
<li>OBJ Writer: Fail if vertex color export was requested (Thanks to Manuel Massing)</li>
|
||||||
<li>OBJ Writer: Added functionality to store FaceTexCoords to objwriter</li>
|
<li>OBJ Writer: Added functionality to store FaceTexCoords to objwriter</li>
|
||||||
<li>OBJ Writer: Applied fix for bad or missing vertex tex coords (Thanks to Gero Müller for the patch)</li>>
|
<li>OBJ Writer: Applied fix for bad or missing vertex tex coords (Thanks to Gero Müller for the patch)</li>>
|
||||||
<li>OBJ Loader: range check for vertex colors and normals in OBJ loader</li>
|
<li>OBJ Loader: range check for vertex colors and normals in OBJ loader</li>
|
||||||
|
|||||||
@@ -224,12 +224,22 @@ write(std::ostream& _out, BaseExporter& _be, Options _opt, std::streamsize _prec
|
|||||||
if (!check( _be, _opt))
|
if (!check( _be, _opt))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// No binary mode for OBJ
|
||||||
|
if ( _opt.check(Options::Binary) ) {
|
||||||
|
omout() << "[OBJWriter] : Warning, Binary mode requested for OBJ Writer (No support for Binary mode), falling back to standard." << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
// check writer features
|
// check for unsupported writer features
|
||||||
if ( _opt.check(Options::Binary) || // not supported by format
|
if (_opt.check(Options::FaceNormal) ) {
|
||||||
_opt.check(Options::FaceNormal))
|
omerr() << "[OBJWriter] : FaceNormal not supported by OBJ Writer" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// check for unsupported writer features
|
||||||
|
if (_opt.check(Options::VertexColor) ) {
|
||||||
|
omerr() << "[OBJWriter] : VertexColor not supported by OBJ Writer" << std::endl;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//create material file if needed
|
//create material file if needed
|
||||||
if ( _opt.check(Options::FaceColor) ){
|
if ( _opt.check(Options::FaceColor) ){
|
||||||
|
|||||||
Reference in New Issue
Block a user