diff --git a/latest/.doctrees/environment.pickle b/latest/.doctrees/environment.pickle index b8fe0d8e..7911efba 100644 Binary files a/latest/.doctrees/environment.pickle and b/latest/.doctrees/environment.pickle differ diff --git a/latest/_modules/compas_wood/binding/binding_globals.html b/latest/_modules/compas_wood/binding/binding_globals.html index ace6c317..ecd1b63b 100644 --- a/latest/_modules/compas_wood/binding/binding_globals.html +++ b/latest/_modules/compas_wood/binding/binding_globals.html @@ -579,7 +579,7 @@

Source code for compas_wood.binding.binding_globals

from wood_nano import GLOBALS -
[docs]class Globals: +
[docs]class Globals(object): """Class to access global variables of the wood_nano library using class instance wood_globals: >>> from compas_wood.binding import wood_globals @@ -668,6 +668,13 @@

Source code for compas_wood.binding.binding_globals

""" + def __new__(cls): + + if not hasattr(cls, "instance"): + cls.instance = super(Globals, cls).__new__(cls) + + return cls.instance + @property def clipper_scale(cls): return GLOBALS.CLIPPER_SCALE