Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristian Sons committed Jul 8, 2015
2 parents 475f914 + e89adbe commit 71af198
Show file tree
Hide file tree
Showing 12 changed files with 32,525 additions and 63,159 deletions.
30 changes: 22 additions & 8 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,46 @@ exports = module.exports = function (grunt) {
options: {
ignore: ['E501' // line too long
]
}, src: ['addons/**/*.py']
},
src: ['addons/**/*.py']
},

todo: {
options: {
file: "TODO.md", githubBoxes: true, colophon: false, usePackage: true
}, src: ['addons/**/*.py']
},
src: ['addons/**/*.py']
},

browserify: {
preview: {
src: "client/templates/preview/index.js",
dest: "addons/io_scene_xml3d/templates/preview/public/scripts/xml3d-blender-preview.js"
}
preview: {
src: "client/templates/preview/index.js",
dest: "addons/io_scene_xml3d/templates/preview/public/scripts/xml3d-blender-preview.js"
}
},

copy: {
preview: {
src: "addons/io_scene_xml3d/templates/preview/public/scripts/xml3d-blender-preview.js",
src: "addons/io_scene_xml3d/templates/preview/public/scripts/xml3d-blender-preview.js",
dest: "output/public/scripts/xml3d-blender-preview.js"
}
},

compress: {
main: {
options: {
mode: 'zip', archive: 'io_scene_xml3d-0.x.x.zip'
},
files: [{expand: true, cwd: 'addons/', src: ['**', '!**/__pycache__/**']}]
}
}
});

grunt.loadNpmTasks('grunt-todo');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-flake8');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-compress');

grunt.registerTask('templates', ['browserify', 'copy']);
};
14 changes: 12 additions & 2 deletions addons/io_scene_xml3d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ class ExportXML3D(bpy.types.Operator, ExportHelper):
items=(('http://www.xml3d.org/xml3d/scripts/xml3d', "Latest Stable (online)", "Latest Stable from xml3d.org"),
('http://www.xml3d.org/xml3d/scripts/xml3d-dev', "Development (online)", "Development Snapshot from xml3d.org"),
('./common/scripts/xml3d/xml3d-4.8', "4.8", "Local version 4.8"),
('./common/scripts/xml3d/xml3d-4.7', "4.7", "Local version 4.8"),
('./common/scripts/xml3d/xml3d-4.9', "4.9", "Local version 4.9"),
),
default='./common/scripts/xml3d/xml3d-4.8',
default='./common/scripts/xml3d/xml3d-4.9',
)

transform_representation = EnumProperty(
Expand Down Expand Up @@ -124,6 +124,12 @@ class ExportXML3D(bpy.types.Operator, ExportHelper):
default=True,
)

mesh_export_barycentric_coordinates = BoolProperty(
name="Export Barycentric Coordinates",
description="Export barycentric coordinates as vertex attributes. Required for instance for wireframe rendering.",
default=False
)

def draw(self, context):
layout = self.layout

Expand Down Expand Up @@ -159,6 +165,10 @@ def draw(self, context):
scene_box.label("Scene Options:", icon="SCENE_DATA")
scene_box.prop(self, "transform_representation")

mesh_box = layout.box()
mesh_box.label("Mesh Options:", icon="OUTLINER_DATA_MESH")
mesh_box.prop(self, "mesh_export_barycentric_coordinates")

def execute(self, context):
from . import export_xml3d

Expand Down
951 changes: 0 additions & 951 deletions addons/io_scene_xml3d/common/scripts/xml3d/xml3d-4.7-min.js

This file was deleted.

Loading

0 comments on commit 71af198

Please sign in to comment.