diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-05-10 17:32:24 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-05-10 17:32:24 +0200 |
commit | 2a10eae5e6794a93c8b92b14836f196bd03b53c3 (patch) | |
tree | 54b1b958b4731c81e5852a38d8c7e0cea07c2bfe /parser.c | |
parent | a6a437ac1a51f091da4c00b12ad69fac04425435 (diff) | |
download | pucket-2a10eae5e6794a93c8b92b14836f196bd03b53c3.tar.gz pucket-2a10eae5e6794a93c8b92b14836f196bd03b53c3.tar.bz2 pucket-2a10eae5e6794a93c8b92b14836f196bd03b53c3.zip |
Drop motion_*
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -647,13 +647,6 @@ static int parse_flame_element(xmlNode *flame_node, flam3_genome *loc_current_cp fprintf(stderr,"Error: Final xforms should not have weight specified.\n"); return(1); } - - /* Check for non-zero motion_* params */ - if (cp->xform[xf].motion_freq != 0 || cp->xform[xf].motion_func != 0) { - fprintf(stderr,"Error: Motion parameters should not be specified in xforms.\n"); - return(1); - } - } } /* Done parsing flame element. */ @@ -729,21 +722,6 @@ static int parse_xform_xml(xmlNode *chld_node,flam3_xform *this_xform, int *num_ this_xform->color_speed = flam3_atof(att_str); } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"animate")) { this_xform->animate = flam3_atof(att_str); - } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"motion_frequency")) { - this_xform->motion_freq = flam3_atoi(att_str); - } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"motion_function")) { - if (!strcmp("sin", att_str)) { - this_xform->motion_func = MOTION_SIN; - } else if (!strcmp("triangle",att_str)) { - this_xform->motion_func = MOTION_TRIANGLE; - } else if (!strcmp("hill",att_str)) { - this_xform->motion_func = MOTION_HILL; - } else { - fprintf(stderr,"Error: unknown motion function '%s'\n",att_str); - xmlFree(att_str); - return(1); - } - } else if (!xmlStrcmp(cur_att->name, (const xmlChar *)"color")) { double tmpc1; this_xform->color = 0.0; |