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:
authorSeva Alekseyev <sevaa@nih.gov>2015-10-24 00:01:53 +0300
committerSeva Alekseyev <sevaa@nih.gov>2015-10-24 00:01:53 +0300
commitf780885f119d5986366425ba62f77774ebedb8d8 (patch)
tree7c3a86a2187d494c8592ef0137ccf5382437e09f
parent0f5627dd2d7e07aa84fb280eb14c52233761223c (diff)
Fix: Text.origin is not a valid input field, now ignored
-rw-r--r--io_scene_x3d/import_x3d.py6
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")