diff options
author | Seva Alekseyev <sevaa@nih.gov> | 2015-10-24 00:01:53 +0300 |
---|---|---|
committer | Seva Alekseyev <sevaa@nih.gov> | 2015-10-24 00:01:53 +0300 |
commit | f780885f119d5986366425ba62f77774ebedb8d8 (patch) | |
tree | 7c3a86a2187d494c8592ef0137ccf5382437e09f /io_scene_x3d/import_x3d.py | |
parent | 0f5627dd2d7e07aa84fb280eb14c52233761223c (diff) |
Fix: Text.origin is not a valid input field, now ignored
Diffstat (limited to 'io_scene_x3d/import_x3d.py')
-rw-r--r-- | io_scene_x3d/import_x3d.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index ba3ebb93..2af00882 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -3025,10 +3025,6 @@ def importShape_ProcessObject(vrmlname, bpydata, geom, geom_spec, node, # bpymesh.transform(getFinalMatrix(node)) bpyob = node.blendObject = bpy.data.objects.new(vrmlname, bpydata) bpyob.source_line_no = geom.lineno - if type(bpydata) == bpy.types.TextCurve: - origin = geom.getFieldAsFloatTuple("origin", (0, 0, 0), ancestry) - bpyob.location = origin - bpyob.matrix_world = getFinalMatrix(node, None, ancestry, global_matrix) bpy.context.scene.objects.link(bpyob).select = True @@ -3459,7 +3455,7 @@ def load_web3d(path, GLOBALS['CIRCLE_DETAIL'] = PREF_CIRCLE_DIV # Enable custom property for source line number - if "source_line_no" not in bpy.types.Object.__dict__: + if not hasattr(bpy.types.Object, "source_line_no"): bpy.types.Object.source_line_no = bpy.props.IntProperty( name="Source Line #", description="Node position in the source X3D/VRML file") |