diff --git a/Three/include/CGAL/Three/Scene_group_item.h b/Three/include/CGAL/Three/Scene_group_item.h index b7102d57474..54af2d76e35 100644 --- a/Three/include/CGAL/Three/Scene_group_item.h +++ b/Three/include/CGAL/Three/Scene_group_item.h @@ -141,9 +141,14 @@ public : //!@see getChildren @see addChild void removeChild( Scene_item* item) { - if(isChildLocked(item)) - return; + if(isChildLocked(item)) + return; update_group_number(item,0); + item->has_group=0; + Scene_group_item* group = + qobject_cast(item); + if(group) + resetHasGroup(group); children.removeOne(item); } //!Moves a child up in the list. @@ -164,7 +169,6 @@ protected: //!Contains a reference to all the children of this group. QList children; - }; //end of class Scene_group_item }