From 4c24d7cfecfdaa68498d3c2a869760e1ba9db8f6 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 29 Jun 2015 18:04:36 +0300 Subject: [PATCH] 0002780: External 20736 Order level --- src/GLViewer/GLViewer_Context.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/GLViewer/GLViewer_Context.h b/src/GLViewer/GLViewer_Context.h index 3ec2ecfed..c3d2c6270 100644 --- a/src/GLViewer/GLViewer_Context.h +++ b/src/GLViewer/GLViewer_Context.h @@ -129,6 +129,13 @@ public: const ObjList& getObjects( bool isActive = true ) { return isActive ? myActiveObjects : myInactiveObjects; } + //! Returns mutable list of context objects + /*! + * \return active objects if isActive = true, else inactive objects + */ + ObjList& modifyObjects( bool isActive = true ) + { return isActive ? myActiveObjects : myInactiveObjects; } + //! Returns first active object GLViewer_Object* getFirstObject() { return *( myActiveObjects.begin() ); } -- 2.39.2