view nodejs/coord.m4 @ 1535:9aff42a7e2b9 tip

Fix issue of add/remove a frame at a scene before all key frames of a layer. When you added or removed a frame at a scene before all key frames of a layer, frameline was not updated correctly. It seems nothing happened, but domview is updated. This changeset fix this issue by correcting logic for boundary case.
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 30 Sep 2011 22:07:28 +0800
parents e22df2f3bffe
children
line wrap: on
line source

define([PROJ_PREFIX], [xnjsmb_auto_])dnl
STRUCT([coord], [coord_t], 
        [ACCESSOR([opacity], [xnjsmb_coord_get_opacity],
			     [xnjsmb_coord_set_opacity])],
	[METHOD([add_shape], [xnjsmb_coord_add_shape],
		(SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []),
	 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []),
	 METHOD([clone_from_subtree], [xnjsmb_coord_clone_from_subtree],
	 	(SELF, OBJ([src], [coord], [coord_t]), ERR), 1,
		[OBJ([coord], [coord_t])],
		(([MOD], [_xnjsmb_coord_clone_from_subtree_mod]))),
	 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []),
	 METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, []),
	 METHOD([num_children], [xnjsmb_coord_num_children], (SELF),
	 	0, [INT]),
	 METHOD([get_child], [xnjsmb_coord_get_child],
	 	(SELF, INT(idx), ERR), 1, [VAL])],
	((GET_INDEX, (coord_get_index, NUMBER)),
	 (SET_INDEX, (coord_set_index, NUMBER)),
	 ([STMOD], [xnjsmb_coord_mod])))