Further explanation: Updating points in a CurveMap requires update calls on the CurveMapping struct. Since ...
12 years, 7 months ago
(2011-09-21 11:57:32 UTC)
#2
Further explanation:
Updating points in a CurveMap requires update calls on the CurveMapping struct.
Since this is unknown to the CurveMap itself, this has been disabled in the RNA
(CurveMap points are readonly, except for selection flag, which does not require
the update).
To work around this i added some RNA functions to CurveMapping, wrapping the C
functions used for this purpose. They take the curve map index as a required
parameter. The remove and set_handle functions work on all selected points (as
in C code), so in order to update specific points without messing up selection
one would have to save the selection state and restore later.
Not as elegant as direct CurveMapPoint functions, but a suitable workaround
imho.
Issue 5091046: RNA write access for CurveMap
Created 12 years, 7 months ago by lukas.toenne
Modified 12 years, 7 months ago
Reviewers: bf-codereview_blender.org, ideasman42
Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Comments: 3