Forráskód Böngészése

Added ability to hide mesh using the visibility button

Geoffrey 7 éve
szülő
commit
f7a5d498bf
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      io_scene_godot/converters/mesh.py

+ 1 - 0
io_scene_godot/converters/mesh.py

@@ -35,6 +35,7 @@ def export_mesh_node(escn_file, export_settings, node, parent_path):
 
         mesh_node = NodeTemplate(node.name, "MeshInstance", parent_path)
         mesh_node['mesh'] = "SubResource({})".format(mesh_id)
+        mesh_node['visible'] = not node.hide
         if not physics.has_physics(node) or not physics.is_physics_root(node):
             mesh_node['transform'] = node.matrix_local
         else: