| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0000674 | LuxRender | LuxBlend | public | 2009-12-09 05:30 | 2009-12-22 01:49 |
|
| Reporter | SATtva | |
| Assigned To | Dade | |
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | | OS Version | |
| Product Version | 0.6 | |
| Target Version | | Fixed in Version | 0.6.1 | |
|
| Summary | 0000674: Importing lbm does not ensures proper system line endings |
| Description | When you export a material to lbm on the system with one line endings (say, on Windows with \r\n) and then import it on the system with another line endings (Linux with \n), LuxBlend crashes with python "invalid syntax" error.
The most trivial change to fix the problem is to open lbm file for reading with Universal line endings (patch included). The only problem would arise if python on the target system was compiled without ULE. However I don't think this could be an issue on any non-embedded system, so this fix should be enough. |
| Tags | No tags attached. |
|
| Mercurial Changeset # | |
| Requires Documentation Update | |
| Requires Exporter Update | |
|
| Attached Files | LuxBlend_0.1.py.mat-linebreaks.patch [^] (347 bytes) 2009-12-09 05:30 [Show Content] [Hide Content]--- LuxBlend_0.1.py-cc014b0f633b 2009-12-09 19:17:24.000000000 +0600
+++ LuxBlend_0.1.py 2009-12-09 19:15:18.000000000 +0600
@@ -6303,7 +6303,7 @@
def loadMatTex(mat, fn, basekey='', tex=None):
global LuxIsGUI
- file = open(fn, 'r')
+ file = open(fn, 'rU')
data = file.read()
file.close()
data = str2MatTex(data, tex)
|
|