mitsuba 0.6.0 upgrade script

metadata
Wenzel Jakob 2017-09-13 11:28:47 +02:00
parent 77d0885f85
commit 933a05740f
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<?xml version='1.0' encoding='utf-8'?>
<!-- Stylesheet to upgrade from Mitsuba version 0.4.x to 0.6.0 scenes -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="xml" indent="yes" encoding="utf-8"/>
<xsl:preserve-space elements="*"/>
<!-- Update the scene version -->
<xsl:template match="scene/@version">
<xsl:attribute name="version">0.6.0</xsl:attribute>
</xsl:template>
<!-- Default copy rule -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>