wphicks / Writing3D

Writing3D is a project to help artists and writers more easily create VR projects
GNU General Public License v3.0
1 stars 8 forks source link

projects crash if glyphs are missing from a font #91

Closed shadoof closed 7 years ago

shadoof commented 7 years ago
shadoof commented 7 years ago

INVOCATION >> /Users/kongqi/W3D/blender/blender.app/Contents/MacOS/blender --background --python /Users/kongqi/W3D/Writing3D/scripts/Mac/../../samples/cwapp.py -- desktop /Users/kongqi/GDrive/BrownGDrive2013/Courses/Writing3D/Writing3D_XML_Samples/sample_00_random.xml found bundled python: /Users/kongqi/W3D/blender/blender.app/Contents/MacOS/../Resources/2.76/python W3D Configuration loaded from /Users/kongqi/.w3d.json Configuration information: {'Export script path': '/Users/kongqi/W3D/Writing3D/pyw3d/w3d_export_tools.py', 'Blender executable': '/Users/kongqi/W3D/blender/blender.app/Contents/MacOS/blender', 'Blender player executable': '/Users/kongqi/W3D/blender/blenderplayer.app/Contents/MacOS/blenderplayer'} Traceback (most recent call last): File "/Users/kongqi/W3D/Writing3D/scripts/Mac/../../samples/cwapp.py", line 67, in fullscreen=(args.config == "desktopfull") File "/Users/kongqi/W3D/Writing3D/pyw3d/w3d_export_tools.py", line 51, in export_to_blender input_project.blend() File "/Users/kongqi/W3D/Writing3D/pyw3d/project.py", line 553, in blend self._blend() File "/Users/kongqi/W3D/Writing3D/pyw3d/project.py", line 588, in blend object.blend() File "/Users/kongqi/W3D/Writing3D/pyw3d/objects.py", line 1082, in blend blender_object = self["content"].blend() File "/Users/kongqi/W3D/Writing3D/pyw3d/objects.py", line 610, in blend apply_euler_rotation(final_object, math.pi / 2, 0, 0) File "/Users/kongqi/W3D/Writing3D/pyw3d/objects.py", line 69, in apply_euler_rotation blender_object.data.transform( AttributeError: 'NoneType' object has no attribute 'transform'

wphicks commented 7 years ago

Possibly related to #78.

wphicks commented 7 years ago

Note to self: Probably best to just drop an empty into the scene when this happens. No other default seems sensible.