MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _parse_effect

Method _parse_effect

editor/import/3d/collada.cpp:701–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701void Collada::_parse_effect(XMLParser &p_parser) {
702 if (!(state.import_flags & IMPORT_FLAG_SCENE)) {
703 if (!p_parser.is_empty()) {
704 p_parser.skip_section();
705 }
706 return;
707 }
708
709 String id = p_parser.get_named_attribute_value("id");
710
711 Effect effect;
712 if (p_parser.has_attribute("name")) {
713 effect.name = p_parser.get_named_attribute_value("name");
714 }
715 _parse_effect_material(p_parser, effect, id);
716
717 state.effect_map[id] = effect;
718
719 COLLADA_PRINT("Effect ID:" + id);
720}
721
722void Collada::_parse_camera(XMLParser &p_parser) {
723 if (!(state.import_flags & IMPORT_FLAG_SCENE)) {

Callers

nothing calls this directly

Calls 4

skip_sectionMethod · 0.80
has_attributeMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected