Fixed XML Parser not parsing empty XML sheets 100% correctly.
This commit is contained in:
@@ -53,7 +53,7 @@ function(tool_vnscene in)
|
||||
STRING(REGEX REPLACE "[\.|\\|\/]" "-" scene_name ${in})
|
||||
add_custom_target(scene_${scene_name}
|
||||
COMMAND vnscenetool --input="${DAWN_ASSETS_SOURCE_DIR}/${in}" --output="${DAWN_GENERATED_DIR}/generatedscenes"
|
||||
COMMENT "Generating prefab from ${in}"
|
||||
COMMENT "Generating vnscene from ${in}"
|
||||
DEPENDS ${DEPS}
|
||||
)
|
||||
target_include_directories(${DAWN_TARGET_NAME}
|
||||
|
@@ -29,6 +29,8 @@ int32_t VNSceneEventsParser::onParse(
|
||||
Xml *child = *itChildren;
|
||||
struct VNSceneEvent event;
|
||||
|
||||
std::cout << "CHILD: " << child->node << std::endl;
|
||||
|
||||
// Parse event(s)
|
||||
if(child->node == "text") {
|
||||
event.type = VN_SCENE_EVENT_TYPE_TEXT;
|
||||
|
Reference in New Issue
Block a user