[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3882] contrib/py/scripts/addons/ io_scene_ms3d: tiny fix: translation applied twice through parenting at importing

Alexander Nussbaumer alpha-beta-release at gmx.net
Tue Oct 23 21:29:49 CEST 2012


Revision: 3882
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3882
Author:   beta-tester
Date:     2012-10-23 19:29:48 +0000 (Tue, 23 Oct 2012)
Log Message:
-----------
tiny fix: translation applied twice through parenting at importing

removed translation for mesh and armature generation.
only the empty is created at cursor-location.
by parenting mesh and armature to the empty, they will be translated to the location of cursor.

Modified Paths:
--------------
    contrib/py/scripts/addons/io_scene_ms3d/__init__.py
    contrib/py/scripts/addons/io_scene_ms3d/ms3d_import.py

Modified: contrib/py/scripts/addons/io_scene_ms3d/__init__.py
===================================================================
--- contrib/py/scripts/addons/io_scene_ms3d/__init__.py	2012-10-23 18:05:16 UTC (rev 3881)
+++ contrib/py/scripts/addons/io_scene_ms3d/__init__.py	2012-10-23 19:29:48 UTC (rev 3882)
@@ -23,10 +23,10 @@
         'description': "Import / Export MilkShape3D MS3D files"\
                 " (conform with v1.8.4)",
         'author': "Alexander Nussbaumer",
-        'version': (0, 4, 0, 4),
+        'version': (0, 4, 0, 5),
         'blender': (2, 6, 3, 0),
         'location': "File > Import & File > Export",
-        'warning': "[2012-10-23] exporter currently is only partial implemented",
+        'warning': "[2012-10-23] exporter is only partial implemented",
         'wiki_url': "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\
                 "Scripts/Import-Export/MilkShape3D_MS3D",
         'tracker_url': "http://projects.blender.org/tracker/index.php"\

Modified: contrib/py/scripts/addons/io_scene_ms3d/ms3d_import.py
===================================================================
--- contrib/py/scripts/addons/io_scene_ms3d/ms3d_import.py	2012-10-23 18:05:16 UTC (rev 3881)
+++ contrib/py/scripts/addons/io_scene_ms3d/ms3d_import.py	2012-10-23 19:29:48 UTC (rev 3882)
@@ -280,7 +280,7 @@
         # link to blender scene
         blender_scene = blender_context.scene
         blender_scene.objects.link(blender_mesh_object)
-        blender_mesh_object.location = blender_scene.cursor_location
+        #blender_mesh_object.location = blender_scene.cursor_location
         enable_edit_mode(False)
         select_all(False)
         blender_mesh_object.select = True
@@ -599,7 +599,7 @@
         blender_armature_object = blender_context.blend_data.objects.new(
                 ms3d_armature_name, blender_armature)
         blender_scene.objects.link(blender_armature_object)
-        blender_armature_object.location = blender_scene.cursor_location
+        #blender_armature_object.location = blender_scene.cursor_location
         blender_armature_object.show_x_ray = True
 
         ##########################



More information about the Bf-extensions-cvs mailing list