Looks like you forgot the updates for actions.<br><br><div class="gmail_quote">On Wed, Jan 7, 2009 at 5:06 PM, Roland Hess <span dir="ltr">&lt;<a href="mailto:me@harkyman.com">me@harkyman.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Revision: 18392<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&amp;root=bf-blender&amp;revision=18392" target="_blank">http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&amp;root=bf-blender&amp;revision=18392</a><br>

Author: &nbsp; harkyman<br>
Date: &nbsp; &nbsp; 2009-01-07 05:06:52 +0100 (Wed, 07 Jan 2009)<br>
<br>
Log Message:<br>
-----------<br>
Finally committing useful rna for action types. This includes actions, action channels and action groups. I broke both pose channels and pose off into their own rna. Links also updated in Object rna for both Action and Pose stuff.<br>

<br>
Modified Paths:<br>
--------------<br>
 &nbsp; &nbsp;branches/blender2.5/blender/source/blender/makesrna/RNA_access.h<br>
 &nbsp; &nbsp;branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c<br>
 &nbsp; &nbsp;branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h<br>
 &nbsp; &nbsp;branches/blender2.5/blender/source/blender/makesrna/intern/rna_main.c<br>
 &nbsp; &nbsp;branches/blender2.5/blender/source/blender/makesrna/intern/rna_object.c<br>
<br>
Added Paths:<br>
-----------<br>
 &nbsp; &nbsp;branches/blender2.5/blender/source/blender/makesrna/intern/rna_pose.c<br>
<br>
Modified: branches/blender2.5/blender/source/blender/makesrna/RNA_access.h<br>
===================================================================<br>
--- branches/blender2.5/blender/source/blender/makesrna/RNA_access.h &nbsp; &nbsp;2009-01-07 03:34:12 UTC (rev 18391)<br>
+++ branches/blender2.5/blender/source/blender/makesrna/RNA_access.h &nbsp; &nbsp;2009-01-07 04:06:52 UTC (rev 18392)<br>
@@ -176,6 +176,8 @@<br>
&nbsp;extern StructRNA RNA_PluginSequence;<br>
&nbsp;extern StructRNA RNA_PointCache;<br>
&nbsp;extern StructRNA RNA_PointerProperty;<br>
+extern StructRNA RNA_Pose;<br>
+extern StructRNA RNA_PoseChannel;<br>
&nbsp;extern StructRNA RNA_Property;<br>
&nbsp;extern StructRNA RNA_PropertySensor;<br>
&nbsp;extern StructRNA RNA_PythonController;<br>
<br>
Modified: branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c<br>
===================================================================<br>
--- branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c &nbsp; &nbsp; &nbsp; 2009-01-07 03:34:12 UTC (rev 18391)<br>
+++ branches/blender2.5/blender/source/blender/makesrna/intern/makesrna.c &nbsp; &nbsp; &nbsp; 2009-01-07 04:06:52 UTC (rev 18392)<br>
@@ -925,6 +925,7 @@<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{&quot;rna_object_force.c&quot;, RNA_def_object_force},<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{&quot;rna_packedfile.c&quot;, RNA_def_packedfile},<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{&quot;rna_particle.c&quot;, RNA_def_particle},<br>
+ &nbsp; &nbsp; &nbsp; {&quot;rna_pose.c&quot;, RNA_def_pose},<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{&quot;rna_property.c&quot;, RNA_def_gameproperty},<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{&quot;rna_radio.c&quot;, RNA_def_radio},<br>
 &nbsp; &nbsp; &nbsp; &nbsp;{&quot;rna_rna.c&quot;, RNA_def_rna},<br>
<br>
Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h<br>
===================================================================<br>
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h &nbsp; 2009-01-07 03:34:12 UTC (rev 18391)<br>
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_internal.h &nbsp; 2009-01-07 04:06:52 UTC (rev 18392)<br>
@@ -123,6 +123,7 @@<br>
&nbsp;void RNA_def_object_force(struct BlenderRNA *brna);<br>
&nbsp;void RNA_def_packedfile(struct BlenderRNA *brna);<br>
&nbsp;void RNA_def_particle(struct BlenderRNA *brna);<br>
+void RNA_def_pose(struct BlenderRNA *brna);<br>
&nbsp;void RNA_def_radio(struct BlenderRNA *brna);<br>
&nbsp;void RNA_def_rna(struct BlenderRNA *brna);<br>
&nbsp;void RNA_def_scene(struct BlenderRNA *brna);<br>
<br>
Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_main.c<br>
===================================================================<br>
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_main.c &nbsp; &nbsp; &nbsp; 2009-01-07 03:34:12 UTC (rev 18391)<br>
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_main.c &nbsp; &nbsp; &nbsp; 2009-01-07 04:06:52 UTC (rev 18392)<br>
@@ -246,7 +246,7 @@<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{&quot;texts&quot;, &quot;Text&quot;, &quot;rna_Main_text_begin&quot;, &quot;Texts&quot;, &quot;Text datablocks.&quot;},<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{&quot;sounds&quot;, &quot;ID&quot;, &quot;rna_Main_sound_begin&quot;, &quot;Sounds&quot;, &quot;Sound datablocks.&quot;},<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{&quot;armatures&quot;, &quot;Armature&quot;, &quot;rna_Main_armature_begin&quot;, &quot;Armatures&quot;, &quot;Armature datablocks.&quot;},<br>
- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&quot;actions&quot;, &quot;ID&quot;, &quot;rna_Main_action_begin&quot;, &quot;Actions&quot;, &quot;Action datablocks.&quot;},<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&quot;actions&quot;, &quot;Action&quot;, &quot;rna_Main_action_begin&quot;, &quot;Actions&quot;, &quot;Action datablocks.&quot;},<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{&quot;particles&quot;, &quot;ID&quot;, &quot;rna_Main_particle_begin&quot;, &quot;Particles&quot;, &quot;Particle datablocks.&quot;},<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{NULL, NULL, NULL, NULL, NULL}};<br>
 &nbsp; &nbsp; &nbsp; &nbsp;int i;<br>
<br>
Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_object.c<br>
===================================================================<br>
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_object.c &nbsp; &nbsp; 2009-01-07 03:34:12 UTC (rev 18391)<br>
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_object.c &nbsp; &nbsp; 2009-01-07 04:06:52 UTC (rev 18392)<br>
@@ -861,17 +861,17 @@<br>
 &nbsp; &nbsp; &nbsp; &nbsp;/* action / pose / nla */<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;prop= RNA_def_property(srna, &quot;action&quot;, PROP_POINTER, PROP_NONE);<br>
- &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;UnknownType&quot;); //action<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;Action&quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;RNA_def_property_ui_text(prop, &quot;Action&quot;, &quot;Action used by object to define Ipo curves.&quot;);<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;prop= RNA_def_property(srna, &quot;pose_library&quot;, PROP_POINTER, PROP_NONE);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;RNA_def_property_pointer_sdna(prop, NULL, &quot;poselib&quot;);<br>
- &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;UnknownType&quot;); // action<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;Action&quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;RNA_def_property_ui_text(prop, &quot;Pose Library&quot;, &quot;Action used as a pose library for armatures.&quot;);<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;prop= RNA_def_property(srna, &quot;pose&quot;, PROP_POINTER, PROP_NONE);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;RNA_def_property_pointer_sdna(prop, NULL, &quot;pose&quot;);<br>
- &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;UnknownType&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;Pose&quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;RNA_def_property_ui_text(prop, &quot;Pose&quot;, &quot;Current pose for armatures.&quot;);<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;prop= RNA_def_property(srna, &quot;pose_mode&quot;, PROP_BOOLEAN, PROP_NONE);<br>
<br>
Added: branches/blender2.5/blender/source/blender/makesrna/intern/rna_pose.c<br>
===================================================================<br>
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_pose.c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (rev 0)<br>
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_pose.c &nbsp; &nbsp; &nbsp; 2009-01-07 04:06:52 UTC (rev 18392)<br>
@@ -0,0 +1,204 @@<br>
+/**<br>
+ * $Id$<br>
+ *<br>
+ * ***** BEGIN GPL LICENSE BLOCK *****<br>
+ *<br>
+ * This program is free software; you can redistribute it and/or<br>
+ * modify it under the terms of the GNU General Public License<br>
+ * as published by the Free Software Foundation; either version 2<br>
+ * of the License, or (at your option) any later version.<br>
+ *<br>
+ * This program is distributed in the hope that it will be useful,<br>
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>
+ * GNU General Public License for more details.<br>
+ *<br>
+ * You should have received a copy of the GNU General Public License<br>
+ * along with this program; if not, write to the Free Software Foundation,<br>
+ * Inc., 59 Temple Place - Suite 330, Boston, MA &nbsp;02111-1307, USA.<br>
+ *<br>
+ * Contributor(s): Blender Foundation (2008), Roland Hess<br>
+ *<br>
+ * ***** END GPL LICENSE BLOCK *****<br>
+ */<br>
+<br>
+#include &lt;stdlib.h&gt;<br>
+<br>
+#include &quot;RNA_define.h&quot;<br>
+#include &quot;RNA_types.h&quot;<br>
+<br>
+#include &quot;rna_internal.h&quot;<br>
+<br>
+#include &quot;DNA_action_types.h&quot;<br>
+#include &quot;DNA_armature_types.h&quot;<br>
+#include &quot;DNA_constraint_types.h&quot;<br>
+#include &quot;DNA_scene_types.h&quot;<br>
+<br>
+#ifdef RNA_RUNTIME<br>
+<br>
+#else<br>
+<br>
+/* users shouldn&#39;t be editing pose channel data directly -- better to set ipos and let blender calc pose_channel stuff */<br>
+/* it&#39;s going to be weird for users to find IK flags and other such here, instead of in bone where they would expect them<br>
+ &nbsp; &nbsp; &nbsp; -- is there any way to put a doc in bone, pointing them here? */<br>
+<br>
+static void rna_def_pose_channel(BlenderRNA *brna)<br>
+{<br>
+ &nbsp; &nbsp; &nbsp; StructRNA *srna;<br>
+ &nbsp; &nbsp; &nbsp; PropertyRNA *prop;<br>
+<br>
+ &nbsp; &nbsp; &nbsp; srna= RNA_def_struct(brna, &quot;PoseChannel&quot;, NULL);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_struct_sdna(srna, &quot;bPoseChannel&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_struct_ui_text(srna, &quot;Pose Channel&quot;, &quot;Member of the &#39;Pose&#39; type.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;constraints&quot;, PROP_COLLECTION, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_collection_sdna(prop, NULL, &quot;constraints&quot;, NULL);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;Constraint&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Constraints&quot;, &quot;Constraints that act on this PoseChannel.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;name&quot;, PROP_STRING, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_flag(prop, PROP_NOT_EDITABLE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Name&quot;, &quot;&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_struct_name_property(srna, prop);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;ik_dof_x&quot;, PROP_BOOLEAN, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_boolean_sdna(prop, NULL, &quot;ikflag&quot;, BONE_IK_NO_XDOF);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;IK X DoF&quot;, &quot;Allow movement around the X axis.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;ik_dof_y&quot;, PROP_BOOLEAN, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_boolean_sdna(prop, NULL, &quot;ikflag&quot;, BONE_IK_NO_YDOF);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;IK Y DoF&quot;, &quot;Allow movement around the Y axis.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;ik_dof_z&quot;, PROP_BOOLEAN, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_boolean_sdna(prop, NULL, &quot;ikflag&quot;, BONE_IK_NO_ZDOF);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;IK Z DoF&quot;, &quot;Allow movement around the Z axis.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;ik_limit_x&quot;, PROP_BOOLEAN, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_boolean_sdna(prop, NULL, &quot;ikflag&quot;, BONE_IK_XLIMIT);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;IK X Limit&quot;, &quot;Limit movement around the X axis.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;ik_limit_y&quot;, PROP_BOOLEAN, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_boolean_sdna(prop, NULL, &quot;ikflag&quot;, BONE_IK_YLIMIT);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;IK Y Limit&quot;, &quot;Limit movement around the Y axis.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;ik_limit_z&quot;, PROP_BOOLEAN, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_boolean_sdna(prop, NULL, &quot;ikflag&quot;, BONE_IK_ZLIMIT);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;IK Z Limit&quot;, &quot;Limit movement around the Z axis.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;selected&quot;, PROP_BOOLEAN, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_boolean_sdna(prop, NULL, &quot;selectflag&quot;, BONE_SELECTED);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Selected&quot;, &quot;&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;protected&quot;, PROP_BOOLEAN, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_boolean_sdna(prop, NULL, &quot;protectflag&quot;, POSE_LOCKED);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Protected&quot;, &quot;Protect channel from being transformed.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;action_group_index&quot;, PROP_INT, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_int_sdna(prop, NULL, &quot;agrp_index&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Action Group Index&quot;, &quot;Action Group this pose channel belogs to (0=no group).&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;path_start_frame&quot;, PROP_INT, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_int_sdna(prop, NULL, &quot;pathsf&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_flag(prop, PROP_NOT_EDITABLE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Bone Paths Calculation Start Frame&quot;, &quot;Starting frame of range of frames to use for Bone Path calculations.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;path_end_frame&quot;, PROP_INT, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_int_sdna(prop, NULL, &quot;pathef&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_flag(prop, PROP_NOT_EDITABLE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Bone Paths Calculation End Frame&quot;, &quot;End frame of range of frames to use for Bone Path calculations.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;bone&quot;, PROP_POINTER, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;Bone&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_flag(prop, PROP_NOT_EDITABLE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Bone&quot;, &quot;Bone associated with this Pose Channel.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;parent&quot;, PROP_POINTER, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;PoseChannel&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_flag(prop, PROP_NOT_EDITABLE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Parent&quot;, &quot;Parent of this pose channel.&quot;);<br>
+<br>
+ &nbsp; &nbsp; &nbsp; prop= RNA_def_property(srna, &quot;child&quot;, PROP_POINTER, PROP_NONE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_struct_type(prop, &quot;PoseChannel&quot;);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_flag(prop, PROP_NOT_EDITABLE);<br>
+ &nbsp; &nbsp; &nbsp; RNA_def_property_ui_text(prop, &quot;Parent&quot;, &quot;Child of this pose channel.&quot;);<br>
+<br>
<br>
@@ Diff output truncated at 10240 characters. @@<br>
<br>
_______________________________________________<br>
Bf-blender-cvs mailing list<br>
<a href="mailto:Bf-blender-cvs@blender.org">Bf-blender-cvs@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-blender-cvs" target="_blank">http://lists.blender.org/mailman/listinfo/bf-blender-cvs</a><br>
</blockquote></div><br>