Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel M. Basso <danielmbasso@gmail.com>2013-02-16 21:01:19 +0400
committerDaniel M. Basso <danielmbasso@gmail.com>2013-02-16 21:01:19 +0400
commit3d5172cf6bc017f929818725ccb890084617c519 (patch)
treebc37c6f9f4cd2c86147637b849ee97f7b14b699a /io_anim_c3d
parentfa8c52897eda889aa4864f31546a2394435bbd92 (diff)
markers may have duplicate labels; thanx to Jens Meisner for the bug report
Diffstat (limited to 'io_anim_c3d')
-rw-r--r--io_anim_c3d/__init__.py4
-rw-r--r--io_anim_c3d/import_c3d.py7
2 files changed, 9 insertions, 2 deletions
diff --git a/io_anim_c3d/__init__.py b/io_anim_c3d/__init__.py
index 4ecc9da1..02704552 100644
--- a/io_anim_c3d/__init__.py
+++ b/io_anim_c3d/__init__.py
@@ -25,8 +25,8 @@
bl_info = {
"name": "C3D Graphics Lab Motion Capture file (.c3d)",
"author": "Daniel Monteiro Basso <daniel@basso.inf.br>",
- "version": (2012, 7, 11, 1),
- "blender": (2, 63, 0),
+ "version": (2013, 2, 16, 1),
+ "blender": (2, 65, 9),
"location": "File > Import",
"description": "Imports C3D Graphics Lab Motion Capture files",
"wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
diff --git a/io_anim_c3d/import_c3d.py b/io_anim_c3d/import_c3d.py
index 0c8cd8f2..9381a537 100644
--- a/io_anim_c3d/import_c3d.py
+++ b/io_anim_c3d/import_c3d.py
@@ -204,6 +204,13 @@ class MarkerSet:
break
# pg should be 'POINT', but let's be liberal and accept any group
self.markerLabels = self.paramGroups[pg].params['LABELS'].decode()
+ repeats = {}
+ for i, m in enumerate(self.markerLabels):
+ if m in repeats:
+ self.markerLabels[i] = '{}.{}'.format(m, repeats[m])
+ repeats[m] += 1
+ else:
+ repeats[m] = 1
def readMarker(self, infile):
pass # ...