From 20990f98dcc36ef6e791fda88d157cadf2af06c0 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 17 Oct 2014 21:40:28 +0300 Subject: [PATCH] Don't bind the default object if nothing was bound before --- source/bindable.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/bindable.h b/source/bindable.h index 20b6482a..b2634ea9 100644 --- a/source/bindable.h +++ b/source/bindable.h @@ -56,7 +56,8 @@ public: static void unbind() { - default_object().bind(); + if(Bindable::cur_obj) + default_object().bind(); } static const T &default_object() -- 2.45.2