[Bf-taskforce25] RNA - Flags for Properties
Brecht Van Lommel
brecht at blender.org
Sat Jan 17 15:01:22 CET 2009
Hi Joshua,
On Sun, 2009-01-18 at 00:15 +1300, Joshua Leung wrote:
> Hi Brecht,
>
> With regard to preventing some 'sensitive' settings from being
> modified during by the Animation System, the RNA docs/comments/code
> seems rather vague about the purpose of some of the flags there. The
> purpose/roles of the following flags are not clear:
>
> * PROP_NOT_EDITABLE
> * PROP_EVALUATED
> * PROP_NOT_DRIVEABLE
>
> Which of these are relevant to determining which properties are
> animatable?
I tried to clear up the naming and comments a bit. So now there are
PROP_NOT_EDITABLE and PROP_NOT_ANIMATEABLE. If the property is not
editable it is also not animate-able. RNA_property_animateable will
check for both flags so should be usable by the animation system to
determine if it can animate a property or not.
I also added an RNA_property_animated function (instead of
PROP_EVALUATED, this really was not suitable as a flag). Not sure if we
need that in the RNA api necessarily, but it might be useful for the
user interface or python to find out if a property is being animated and
so any edits of it will be lost.
Brecht.
More information about the Bf-taskforce25
mailing list