Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-03-22 04:09:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-22 04:17:25 +0300
commitad7bb8e42c385f6777e14649bd238de2348ad31b (patch)
tree503a787291a8dc7b7072d6fd0b03fcdd45ea0af1 /source/blender/makesdna
parent1e4f6b231ce54e894b308c00e56525c085db8781 (diff)
Cleanup: spelling, correct Mesh.mface docs
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_layer_types.h6
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h10
-rw-r--r--source/blender/makesdna/intern/dna_genfile.c2
3 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/makesdna/DNA_layer_types.h b/source/blender/makesdna/DNA_layer_types.h
index 62ae5768879..a9293d18d41 100644
--- a/source/blender/makesdna/DNA_layer_types.h
+++ b/source/blender/makesdna/DNA_layer_types.h
@@ -28,8 +28,10 @@ extern "C" {
#include "DNA_freestyle_types.h"
#include "DNA_listBase.h"
-/* Renderpasses for EEVEE.
- * ViewLayerEEVEE.render_passes */
+/**
+ * Render-passes for EEVEE.
+ * #ViewLayerEEVEE.render_passes
+ */
typedef enum eViewLayerEEVEEPassType {
EEVEE_RENDER_PASS_COMBINED = (1 << 0),
EEVEE_RENDER_PASS_Z = (1 << 1),
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h
index 3c05755159d..d8acf5bc493 100644
--- a/source/blender/makesdna/DNA_mesh_types.h
+++ b/source/blender/makesdna/DNA_mesh_types.h
@@ -134,9 +134,13 @@ typedef struct Mesh {
struct MLoopCol *mloopcol;
/* END BMESH ONLY */
- /* mface stores the tessellation (triangulation) of the mesh,
- * real faces are now stored in nface.*/
- /** Array of mesh object mode faces for tessellation. */
+ /**
+ * Legacy face storage (quads & tries only),
+ * faces are now stored in #Mesh.mpoly & #Mesh.mloop arrays.
+ *
+ * \note This would be marked deprecated however the particles still use this at run-time
+ * for placing particles on the mesh (something which should be eventually upgraded).
+ */
struct MFace *mface;
/** Store tessellation face UV's and texture here. */
struct MTFace *mtface;
diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c
index 2e0fe6200d1..cf7c201795e 100644
--- a/source/blender/makesdna/intern/dna_genfile.c
+++ b/source/blender/makesdna/intern/dna_genfile.c
@@ -591,7 +591,7 @@ SDNA *DNA_sdna_from_data(const void *data,
}
/**
- * Using globals is acceptable here,
+ * Using a global is acceptable here,
* the data is read-only and only changes between Blender versions.
*
* So it is safe to create once and reuse.