3#include "pixelbullet/filesystem/virtual_path.h"
4#include "pixelbullet/filesystem/virtual_path_serialization.h"
5#include "pixelbullet/scene/entity_id.h"
6#include "pixelbullet/serialization/node.h"
14 EntityId weights_source = EntityId::Invalid();
20 node[
"mesh"] << morph_mesh_renderer.mesh;
21 node[
"material"] << morph_mesh_renderer.material;
22 node[
"weightsSource"] << morph_mesh_renderer.weights_source;
23 node[
"visible"] << morph_mesh_renderer.visible;
27inline const Node& operator>>(
const Node& node, MorphMeshRenderer& morph_mesh_renderer)
29 node[
"mesh"] >> morph_mesh_renderer.mesh;
30 node[
"material"] >> morph_mesh_renderer.material;
31 if (node.HasProperty(
"weightsSource"))
33 node[
"weightsSource"] >> morph_mesh_renderer.weights_source;
37 morph_mesh_renderer.weights_source = EntityId::Invalid();
39 node[
"visible"] >> morph_mesh_renderer.visible;
Definition entity_id.h:11
Represents a hierarchical node capable of storing various data types and supporting YAML serializatio...
Definition node.h:45
Definition virtual_path.h:10
Definition morph_mesh_renderer.h:11