From ed920b614e2a58470d546fdbfb1bb32f4166d547 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 20 Jun 2007 18:25:21 +0000 Subject: [PATCH] copy_subgraph should also copy root_xform --- panda/src/chan/partBundle.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panda/src/chan/partBundle.cxx b/panda/src/chan/partBundle.cxx index 32d4ab0598..0c3383604d 100644 --- a/panda/src/chan/partBundle.cxx +++ b/panda/src/chan/partBundle.cxx @@ -54,7 +54,11 @@ PartBundle(const PartBundle ©) : PartGroup(copy) { CDWriter cdata(_cycler, true); - cdata->_blend_type = copy.get_blend_type(); + CDReader cdata_from(copy._cycler); + cdata->_blend_type = cdata_from->_blend_type; + cdata->_anim_blend_flag = cdata_from->_anim_blend_flag; + cdata->_frame_blend_flag = cdata_from->_frame_blend_flag; + cdata->_root_xform = cdata_from->_root_xform; } ////////////////////////////////////////////////////////////////////