CURA-5572 The scene was not updated when a Gcode was loaded.

This fixes a bug that we introduced when fixing code style. This was a
bad translation.
This commit is contained in:
Diego Prado Gesto 2018-07-13 16:05:13 +02:00
parent 31891e631c
commit 01a26b0360
2 changed files with 3 additions and 3 deletions

View file

@ -488,7 +488,7 @@ class CuraEngineBackend(QObject, Backend):
# we got a single scenenode
if not source.callDecoration("isGroup"):
mesh_data = source.getMeshData()
if mesh_data and mesh_data.getVertices() is None:
if mesh_data is None or mesh_data.getVertices() is None:
return
# There are some SceneNodes that do not have any build plate associated, then do not add to the list.