Esempio n. 1
0
void ObjectInstance::unassign_material(
    const char*             slot,
    const Side              side)
{
    StringDictionary& material_mappings =
        side == FrontSide
            ? impl->m_front_material_mappings
            : impl->m_back_material_mappings;

    material_mappings.remove(slot);

    bump_version_id();
}
Esempio n. 2
0
void ObjectInstance::assign_material(
    const char*             slot,
    const Side              side,
    const char*             name)
{
    StringDictionary& material_mappings =
        side == FrontSide
            ? impl->m_front_material_mappings
            : impl->m_back_material_mappings;

    material_mappings.insert(slot, name);

    bump_version_id();
}
Esempio n. 3
0
void Light::set_transform(const Transformd& transform)
{
    impl->m_transform = transform;
    bump_version_id();
}
Esempio n. 4
0
void ObjectInstance::clear_back_materials()
{
    impl->m_back_material_mappings.clear();

    bump_version_id();
}