SahelFllh / opencollada

Automatically exported from code.google.com/p/opencollada
0 stars 0 forks source link

OpenCOLLADA Max fails to load options when prompt is surpressed #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open a simple model, open the maxscript console, enter "exportFile "c:\\
\\myfile.dae" #noPrompt

What is the expected output? What do you see instead?

Myfile.dae is not generated with the saved options. Instead it uses some 
default options. 

What version of the product are you using? On what operating system?

3ds max 2010, win7.

Please provide any additional information below.

The cause for this issue is here: http://code.google.com/p/opencollada/
source/browse/trunk/COLLADAMax/src/COLLADAMaxDocumentExporter.cpp#314 .

mOptions.ShowDialog will call LoadOptions. This happens only when the 
prompt is not surpressed. When the prompt is surpressed no options are 
loaded at all.

Suggested fix is no call mOptions.LoadOptions() if the prompt is 
surpressed.

Original issue reported on code.google.com by nitrogen...@gmail.com on 7 Jan 2010 at 6:46

GoogleCodeExporter commented 9 years ago
Thanks for reporting this issue. I have just apply your suggested solution.

Original comment by opencollada2@googlemail.com on 11 Jan 2010 at 3:40