mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-02 13:20:59 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
991d421756 |
@@ -311,9 +311,14 @@ void AMFParserContext::startElement(const char *name, const char **atts)
|
|||||||
case 2:
|
case 2:
|
||||||
if (strcmp(name, "metadata") == 0) {
|
if (strcmp(name, "metadata") == 0) {
|
||||||
if (m_path[1] == NODE_TYPE_MATERIAL || m_path[1] == NODE_TYPE_OBJECT) {
|
if (m_path[1] == NODE_TYPE_MATERIAL || m_path[1] == NODE_TYPE_OBJECT) {
|
||||||
m_value[0] = get_attribute(atts, "type");
|
const char *type = get_attribute(atts, "type");
|
||||||
|
if (type == nullptr)
|
||||||
|
this->stop();
|
||||||
|
else {
|
||||||
|
m_value[0] = type;
|
||||||
node_type_new = NODE_TYPE_METADATA;
|
node_type_new = NODE_TYPE_METADATA;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}/* else if (strcmp(name, "layer_config_ranges") == 0 && m_path[1] == NODE_TYPE_OBJECT)
|
}/* else if (strcmp(name, "layer_config_ranges") == 0 && m_path[1] == NODE_TYPE_OBJECT)
|
||||||
node_type_new = NODE_TYPE_LAYER_CONFIG;*/
|
node_type_new = NODE_TYPE_LAYER_CONFIG;*/
|
||||||
else if (strcmp(name, "mesh") == 0) {
|
else if (strcmp(name, "mesh") == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user