diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-29 03:22:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-29 03:22:11 +0400 |
commit | 2a9841dc56d9a7d1df773c4114f6805674471dd3 (patch) | |
tree | 2f0e923fce270cef3329a13120c5e1d91b09331d /development_api_navigator.py | |
parent | 44a94e93b2012811fb0dd5060004fa55ed265bc1 (diff) |
patch [#27769] Small fixes for X3D exporter: not existing IndexedTriangleSet.creaseAngle, zero Viewpoint.orientation, ...
*Info from the tracker submission this patch resolves*
3. When exporting texture URL, new Blender 2.58 exporter writes URLs in the order: [basename, result of bpy_extras.io_utils.path_reference, absolute]. I propose to change this order to write the result of bpy_extras.io_utils.path_reference *first*. Reasons:
-- Result of bpy_extras.io_utils.path_reference is controlled by user (through path_mode). By setting it correctly, user can make sure that 1st url matches (which is nice for 3d viewer, also avoids warnings from view3dcene that one url along the way was not available).
-- This also makes the results of 2.58 exporter more similar to how 2.57 behaved. In 2.57, the relative path "os.path.relpath(filepath_full, relpath)" was first, then basename, then absolute name. And that was good, in my opinion, as relative path has the best chance of success and is more directly controlled by user. (New "bpy_extras.io_utils.path_reference" is even better, so kudos for implementing it.)
4. Finally, a trivial fix to the formatting of output "<TextureTransform..." in X3D. Without this fix, "<TextureTransform" and "translation=" are on the same output line, separated by a lot of whitespaces (taken from ident_step).
Diffstat (limited to 'development_api_navigator.py')
0 files changed, 0 insertions, 0 deletions