Bug 1212 - When a .scene XML file is saved by GUI, it adds extra spaces before some mat IDs
Summary: When a .scene XML file is saved by GUI, it adds extra spaces before some mat IDs
Status: RESOLVED FIXED
Alias: None
Product: DIRSIG4
Classification: Unclassified
Component: dirsig_edit (show other bugs)
Version: 4.7.0-release
Hardware: Other Other
: P5 enhancement
Assignee: Scott D. Brown
URL:
Depends on:
Blocks:
 
Reported: 2016-02-29 16:15 EST by Michael Gartley
Modified: 2016-03-01 17:09 EST (History)
0 users

See Also:


Attachments
original scene decription mostly edited in Notepad++ (6.04 KB, text/plain)
2016-02-29 16:16 EST, Michael Gartley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Gartley 2016-02-29 16:15:42 EST
For a scene I am working on for Trona, CA.. I used the scene editor
in the GUI. After doing nothing at all (or changing something), the
.scene XML file that is saved to disk is different than the one ingested.

Namely, the most recent GUI is adding spaces before some of the material IDs and therefore, at run time, the material IDs are not correctly mapped to the texture map.

Here is an example XML snippet that it saves back out and causes DIRSIG to not utilize the texture map correctly.
    <texturemap name="Trona Texture Map" enabled="true">
      <matidlist>
        <matid>10003</matid>
        <matid> 10001</matid>
        <matid> 10005</matid>
        <matid> 6004</matid>
      </matidlist>

will attach the before (trona.scene) and after save files (saved.scene)
Comment 1 Michael Gartley 2016-02-29 16:16:38 EST
Created attachment 381 [details]
original scene decription mostly edited in Notepad++

original scene decription mostly edited in Notepad++
Comment 2 Scott D. Brown 2016-02-29 16:17:21 EST
That seems like a sucky but easy to fix one.
Comment 3 Scott D. Brown 2016-03-01 17:09:58 EST
Fixed in trunk and the 4.7.1 release tag. Updated the default builds on the CIS Linux machines.