diff --git a/datatypes/__pycache__/vector.cpython-37.pyc b/datatypes/__pycache__/vector.cpython-37.pyc index 939cd569..b6b62acb 100644 Binary files a/datatypes/__pycache__/vector.cpython-37.pyc and b/datatypes/__pycache__/vector.cpython-37.pyc differ diff --git a/datatypes/vector.py b/datatypes/vector.py index 1db878f1..a62847d6 100644 --- a/datatypes/vector.py +++ b/datatypes/vector.py @@ -592,6 +592,7 @@ def angle(self, other, clockNormal=None): if complete: dot = cross.dot(other, normalize=True) angle = dot.gt(0.0).ifElse(_pu.radians(360.0)-angle, angle) + angle.__class__ = r.plugs.Angle else: angle = _dt.Vector.angle(self, other) diff --git a/docs/.buildinfo b/docs/.buildinfo index 7b1af940..55b7257a 100644 --- a/docs/.buildinfo +++ b/docs/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 344b8a042bbc25667d62ea35aa37cb6f +config: 0ea969a95b6c90ee4eedc39f269810fc tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/_sources/paya/lib/mathops.rst.txt b/docs/_sources/paya/lib/mathops.rst.txt index 2116e437..d716bdcf 100644 --- a/docs/_sources/paya/lib/mathops.rst.txt +++ b/docs/_sources/paya/lib/mathops.rst.txt @@ -11,9 +11,14 @@ paya.lib.mathops False :rtype: bool -.. py:class:: NativeUnits +.. py:class:: NativeUnits(*args, **kwargs) - Context manager. Switches Maya to centimetres and radians. + Context manager. Switches Maya to centimetres and radians. New-scene / + open-scene / save-scene events are compensated for with API callbacks. + + .. py:staticmethod:: __new__(*args, **kwargs) + + Create and return a new object. See help(type) for accurate signature. .. py:function:: nativeUnits(f) diff --git a/docs/_sources/whats_new.rst.txt b/docs/_sources/whats_new.rst.txt index 1ab66d88..46264d03 100644 --- a/docs/_sources/whats_new.rst.txt +++ b/docs/_sources/whats_new.rst.txt @@ -2,6 +2,20 @@ What's New ########## +************* +Version 0.8.2 +************* + +Bugs Fixed +========== + +* :meth:`paya.runtime.data.Vector.angle` and :meth:`paya.runtime.plugs.Vector.angle` return the wrong subclass of + :class:`~paya.runtime.plugs.Attribute` + +* :class:`~paya.lib.mathops.NativeUnits` is defeated by new-scene / open-scene / save-scene events (fix: added + API callbacks and changed the class to a singleton that will ignore nested calls, to cut down on callback + maintenance) + ************* Version 0.8.1 ************* @@ -26,7 +40,7 @@ Bugs Fixed ========== * Up vectors are not properly iterated inside - :meth:`~paya.runtime.nodes.NurbsCurve.distributeMatrices` + :meth:`paya.runtime.nodes.NurbsCurve.distributeMatrices` --------- diff --git a/docs/_static/documentation_options.js b/docs/_static/documentation_options.js index d330c2d7..4a22879e 100644 --- a/docs/_static/documentation_options.js +++ b/docs/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '0.8.1', + VERSION: '0.8.2', LANGUAGE: 'None', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/docs/adding_oo_functionality.html b/docs/adding_oo_functionality.html index 2fc30a2e..609c2c0c 100644 --- a/docs/adding_oo_functionality.html +++ b/docs/adding_oo_functionality.html @@ -4,7 +4,7 @@ -