[Bf-blender-cvs] [962c3cf6b19] master: Cleanup: remove unused IDProperty members

Campbell Barton noreply at git.blender.org
Tue Jan 17 02:37:02 CET 2023


Commit: 962c3cf6b190a570ba6d2c5efdaca952f48b3299
Author: Campbell Barton
Date:   Tue Jan 17 12:00:34 2023 +1100
Branches: master
https://developer.blender.org/rB962c3cf6b190a570ba6d2c5efdaca952f48b3299

Cleanup: remove unused IDProperty members

Remove:

- IDPropertyTemplate.matrix_or_vector
  Matrix & vector types have been deprecated, this wasn't used.

- IDProperty.saved
  This was added preemptively but never used, replace with a pad so as
  not to hint at a feature that doesn't exist.

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

M	source/blender/blenkernel/BKE_idprop.h
M	source/blender/makesdna/DNA_ID.h

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

diff --git a/source/blender/blenkernel/BKE_idprop.h b/source/blender/blenkernel/BKE_idprop.h
index 22470b7a629..32239a30312 100644
--- a/source/blender/blenkernel/BKE_idprop.h
+++ b/source/blender/blenkernel/BKE_idprop.h
@@ -39,10 +39,6 @@ typedef union IDPropertyTemplate {
     /** #eIDPropertyType */
     char type;
   } array;
-  struct {
-    int matvec_size;
-    const float *example;
-  } matrix_or_vector;
 } IDPropertyTemplate;
 
 /* ----------- Property Array Type ---------- */
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index 43317bc0466..1e43321836f 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -127,9 +127,8 @@ typedef struct IDProperty {
   /** Size matches #MAX_IDPROP_NAME. */
   char name[64];
 
-  /* saved is used to indicate if this struct has been saved yet.
-   * seemed like a good idea as a '_pad' var was needed anyway :) */
-  int saved;
+  char _pad0[4];
+
   /** NOTE: alignment for 64 bits. */
   IDPropertyData data;



More information about the Bf-blender-cvs mailing list