[Bf-blender-cvs] [2564d929fc5] blender2.8: Correct over-alloc struct declaration

Campbell Barton noreply at git.blender.org
Wed May 3 18:10:04 CEST 2017


Commit: 2564d929fc5f75403bc5ca051fb33bc7b8874646
Author: Campbell Barton
Date:   Thu May 4 02:14:51 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB2564d929fc5f75403bc5ca051fb33bc7b8874646

Correct over-alloc struct declaration

===================================================================

M	source/blender/makesdna/DNA_action_types.h

===================================================================

diff --git a/source/blender/makesdna/DNA_action_types.h b/source/blender/makesdna/DNA_action_types.h
index 87749c3b768..90d6bbb4f1e 100644
--- a/source/blender/makesdna/DNA_action_types.h
+++ b/source/blender/makesdna/DNA_action_types.h
@@ -180,6 +180,7 @@ typedef enum eMotionPaths_BakeFlag {
 	MOTIONPATH_BAKE_HAS_PATHS       = (1 << 2)
 } eMotionPath_BakeFlag;
 
+/* runtime */
 #
 #
 typedef struct bPoseChannelDrawData {
@@ -187,7 +188,8 @@ typedef struct bPoseChannelDrawData {
 	float wire_color[4];
 
 	int bbone_matrix_len;
-	float bbone_matrix[32][4][4];
+	/* keep last */
+	float bbone_matrix[0][4][4];
 } bPoseChannelDrawData;
 
 /* ************************************************ */




More information about the Bf-blender-cvs mailing list